size

pure function size(): integer

Get the size of this JSON value; i.e. the number of elements in this JSON array, or the number of key-value pairs in this JSON object.

Return

the size of this JSON value

Since

0.14.16

Throws

exception

if this JSON value is not an array or an object