JSON Functions

FLEX json utilities.

Frequently Asked Questions 3
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?

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?

Use the namespace flex.json.<function>(). For example: flex.json.toJson({name: 'Alice'}) returns a JSON string.


Table of contents