Skip to end of banner
Go to start of banner

JSON Functions and Properties

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

parse

Description

Parses a string as JSON.

This is similar to the JavaScript .parse().

This function is not supported in SnapReduce or Spark pipelines.

Syntax
JSON.parse(text)
Example

Expression: JSON.parse("null")

Result: The string "null" is converted into the null value

stringify

Description

Converts a JavaScript value to a JSON string.

This is similar to the JavaScript .stringify().

This function is not supported in SnapReduce or Spark pipelines.

Syntax
JSON.stringify(value)
Example

Expression: JSON.stringify(null)

Result: The null value is converted into the string "null".



  • No labels