print_as_json
Print a data structure in JSON format so it is more-easily readable.
githubArguments
Name | Description | Type |
---|---|---|
inmap | The variable that sound be printed. | any |
Example
var = [foo: [bar: [1,2,3]], baz: 'francis crick']
print_as_json(var)
// {
// "foo": {
// "bar": [1, 2, 3]
// },
// "baz": "francis crick"
// }