parse.json
Description
Parse JSON files
Init
parse.json(path string)
Fields
| ID | TYPE | DESCRIPTION |
|---|---|---|
| file | file | File that is parsed |
| content | string | Raw content of the file that is parsed |
| params | dict | The 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