.jsonParse()

Description

Parses the current string as JSON and returns the resulting object, throwing an error if the string is not valid JSON.

Parameters

JsonParse takes no parameters.

Usage On Strings

json = '{"x":10,"y":20}'.JsonParse()

log json.x // 10

Last updated

Was this helpful?