Json module

json_count

procedureextensionSource

How many elements an array has, or members an object has; 0 for anything else.

Example↗
list, _ := from_json(Json_Value, "[1, 2, 3]");
assert(json_count(*list) == 3);
free_json(*list);
json_count :: (value: *Json_Value) -> int

Parameters

value: *Json_Value

Returns

int

See also