Skip to main content

parse.json

Description

Parse JSON files

Init

parse.json(path string)

Fields

IDTYPEDESCRIPTION
filefileFile that is parsed
contentstringRaw content of the file that is parsed
paramsdictThe parsed parameters defined in this file

Examples

Parse JSON from string content

parse.json(content: '{ "a": "b"  }').params

Parse JSON from file

parse.json("/path/to/test.json").params