print_as_json

Print a data structure in JSON format so it is more-easily readable.

github

Arguments

NameDescriptionType
inmapThe 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"
// }