Skip to main content
Version: v0.19.1

JSON

Module Function​

parse(STRING)​

Returns HASH

Takes a STRING and parses it to a HASH or ARRAY. Numbers are always FLOAT.

🚀 > JSON.parse('{"test": 123}')
=> {"test": 123.0}
🚀 > JSON.parse('["test", 123]')
=> ["test", 123.0]

Properties​

NameValue