JSON Array
JSON array format: [val1, val2, val3, ...]. May contain objects, scalars, or nested arrays.
JSON Array
container.object.json_arrayJSON array format: [val1, val2, val3, ...]. May contain objects, scalars, or nested arrays.
Domain
container
Category
object
Casts to
JSON
Scope
Universal
Try it
CLI
$ finetype infer -i "[1, 2, 3]" --mode column
→ container.object.json_arrayDuckDB
Detect
SELECT ft_infer('[1, 2, 3]');
-- → 'container.object.json_array'Cast expression
PARSE_JSON({col})Safe cast pipeline
-- Normalise and cast in one step
SELECT TRY_CAST(ft_cast(my_column) AS JSON) AS clean_value
FROM my_table
WHERE ft_infer(my_column) = 'container.object.json_array';Decompose
Expression
RECURSIVE_INFER_ON_ARRAY_ELEMENTS({col})JSON Schema
finetype taxonomy container.object.json_array -o json-schema
{
"$id": "https://meridian.online/schemas/container.object.json_array",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "JSON array format: [val1, val2, val3, ...]. May contain objects, scalars, or nested arrays.\nRECURSIVE INFERENCE: When classified as container.object.json_array, FineType will: 1. Parse the array 2. Sample elements to infer a common element type 3. Return an array of that inferred type\nExample:\n Input: [1, 2, 3, 4, 5]\n Output: LIST<BIGINT>\n\n Input: [{\"id\": 1}, {\"id\": 2}]\n Output: LIST<STRUCT<id BIGINT>>",
"examples": [
"[1, 2, 3]",
"[\"a\", \"b\", \"c\"]",
"[{\"id\": 1, \"name\": \"Alice\"}, {\"id\": 2, \"name\": \"Bob\"}]"
],
"pattern": "^\\[.*\\]$",
"title": "JSON Array",
"type": "string",
"x-finetype-label": "container.object.json_array",
"x-finetype-pii": false
}Examples
[1, 2, 3]["a", "b", "c"][{"id": 1, "name": "Alice"}, {"id": 2, "name": "Bob"}]Aliases
json_listarray