1
0
Fork 0
forked from fun/fun
fun/web/documentation/extensions/json/json.md

934 B

layout published noToc noComments noDate title subtitle description permalink lang tags
page true false false false Fun - JSON (json-c) extension (optional) Documentation for JSON (json-c) extension (optional) Documentation for JSON (json-c) extension (optional) /documentation/extensions/json/ en
extension
json
optional

Opcodes:

  • OP_JSON_PARSE: pops text; pushes value or Nil on error
  • OP_JSON_STRINGIFY: pops pretty:int(0/1), value; pushes string
  • OP_JSON_FROM_FILE: pops path; pushes value or Nil
  • OP_JSON_TO_FILE: pops pretty:int(0/1), value, path; pushes 1/0

Notes:

  • Requires json-c development headers/libs.
  • When disabled, functions push empty/neutral values similar to other optional modules.