Frequently Asked Questions
What are FLEX JSON functions?
What are FLEX JSON functions?
FLEX JSON functions provide serialization (value to JSON string) and parsing (JSON string to map or list) utilities for use in Cypher queries.
How do FLEX JSON functions handle invalid input?
How do FLEX JSON functions handle invalid input?
They handle errors gracefully —
fromJsonMap returns an empty map {} and fromJsonList returns an empty list [] on parse failures, without throwing exceptions.How do I call a JSON function?
How do I call a JSON function?
Use the namespace
flex.json.<function>(). For example: flex.json.toJson({name: 'Alice'}) returns a JSON string.