> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# insert_records_from_json_with_options

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/json_records.rs#L151-L184)
pub async fn [insert\_records\_from\_json\_with\_options](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/insert-records-from-json-with-options.md#method.insert_records_from_json_with_options)( \&self, json\_records: &[str](https://doc.rust-lang.org/1.98.1/std/primitive.str.html), table\_name: &[str](https://doc.rust-lang.org/1.98.1/std/primitive.str.html), json\_options: [Option](https://doc.rust-lang.org/1.98.1/core/option/enum.Option.html)\<[JsonOptions](https://docs.kinetica.com/content/api/rust/json_records/struct.JsonOptions.md)>, create\_table\_options: [Option](https://doc.rust-lang.org/1.98.1/core/option/enum.Option.html)\<[HashMap](https://doc.rust-lang.org/1.98.1/std/collections/hash/map/struct.HashMap.html)\<[String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html)>>, insert\_records\_options: [Option](https://doc.rust-lang.org/1.98.1/core/option/enum.Option.html)\<[HashMap](https://doc.rust-lang.org/1.98.1/std/collections/hash/map/struct.HashMap.html)\<[String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html)>>, ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[Map](https://docs.rs/serde_json/1.0.149/serde_json/map/struct.Map.html)\<[String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), [Value](https://docs.rs/serde_json/1.0.149/serde_json/value/enum.Value.html)>, [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Inserts JSON records into `table_name`, creating it with `create_table_options` if need be.Returns the server’s whole answer, without checking its `status`: a failure the server reports in it is for the caller to read.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.