readjson

Table of Contents

Prototype: readjson(filename, maxbytes)

Return type: data

Description: Parses JSON data from the first maxbytes bytes of file filename and returns the result as a data variable.

Arguments:

  • filename: string, in the range: "?(/.*)
  • maxbytes: int, in the range: 0,99999999999

Example:

    vars:

      "loadthis"

         data =>  readjson("/tmp/data.json", 4000);

See also: parsejson(), storejson(), mergedata(), and data documentation.