diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-02-06 05:22:12 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-02-06 15:29:55 +0200 |
commit | 2269a611da40bd7242dbd1a3204c212ac6091fd7 (patch) | |
tree | 762f9eba621026e9bb7d8fd69107a4447783a45a /doc/manual.cli | |
parent | a5acaba537dab8e06be1197916acff86699aa5a3 (diff) |
Add experimental support for JSON value types
Diffstat (limited to 'doc/manual.cli')
-rw-r--r-- | doc/manual.cli | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/manual.cli b/doc/manual.cli index 66d0ffb..cd77bfe 100644 --- a/doc/manual.cli +++ b/doc/manual.cli @@ -6113,6 +6113,29 @@ if $regex.match($name, '(.+)-(.+)') " source <functions-regex.cli>; +// $json.*() +// +" +\h#functions-json|JSON Functions| + +The \c{$json.*()} function family contains function that operate on the JSON +types: \c{json}, \c{json_array}, and \c{json_object}. For example: + +\ +j = [json] one@1 two@abc three@([json] x@1 y@-1) + +for m: $j +{ + n = $member_name($m) + v = $member_value($m) + + info $n $value_type($v) $v +} +\ + +" +source <functions-json.cli>; + // $process.*() // |