A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.cfengine.com/latest/reference-functions-readjson.html below:

readjson - CFEngine 3.26 Docs

Prototype: readjson(filename, optional_maxbytes)

Return type: data

Description: Parses JSON data from the file filename and returns the result as a data variable. maxbytes is optional, if specified, only the first maxbytes bytes are read from filename.

Arguments:

Example:

code

vars:

  "loadthis"

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

See also: data_expand(), readdata(), parsejson(), storejson(), parseyaml(), readyaml(), mergedata(), validjson(), and data documentation.

History:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4