> ## 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.

# json_utils

> json_utils — Kinetica Rust API

[gpudb\_api](https://docs.kinetica.com/content/api/rust/index.md)
[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/json_utils.rs#L1-L836)&#x20;

Whether a text is a JSON object or array, and how a list of JSON records is sent as one array.A text is read leniently: unquoted and single-quoted names and values, `;` between members, and trailing, empty and leading commas are taken, and whatever follows the outermost object or array is ignored. A name twice in one object is not taken. Only whether the text parses is answered.The parse keeps its own stack, so it has no limit on nesting depth.

## Functions

[is\_<wbr />valid\_<wbr />json](https://docs.kinetica.com/content/api/rust/json_utils/fn.is_valid_json.md)Whether `text` parses as a JSON object, read leniently (see the [module docs](https://docs.kinetica.com/content/api/rust/json_utils/index.md)).[is\_<wbr />valid\_<wbr />json\_<wbr />array](https://docs.kinetica.com/content/api/rust/json_utils/fn.is_valid_json_array.md)Whether `text` parses as a JSON array, read leniently (see the [module docs](https://docs.kinetica.com/content/api/rust/json_utils/index.md)).[is\_<wbr />valid\_<wbr />json\_<wbr />list](https://docs.kinetica.com/content/api/rust/json_utils/fn.is_valid_json_list.md)Whether every text parses as a JSON object, as [`is_valid_json`](https://docs.kinetica.com/content/api/rust/json_utils/fn.is_valid_json) answers.[to\_<wbr />json\_<wbr />array](https://docs.kinetica.com/content/api/rust/json_utils/fn.to_json_array.md)The records, each already JSON, joined with commas inside brackets, as they are without checking them.


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