JSON functions in calculations
ExpertBuild, navigate, and transform JSON data entirely within FileMaker calculations using the JSON* function family.
What you'll learn
- How to build a JSON object with multiple nested keys
- How to extract a deeply nested value with a key path
- How to transform an array of JSON objects into a value list
FileMaker's native JSON functions — JSONSetElement, JSONGetElement, JSONDeleteElement, JSONListKeys, JSONListValues, and JSONFormatElements — let you work with structured data directly in calculation fields without scripts. This is essential for parsing API responses, building request bodies, and storing structured values in a single text field.
1/3
1
Building a JSON object
JSONSetElement takes an existing JSON string (or "{}") and adds or updates one or more key-value pairs. The last argument specifies the JSON type.
FileMaker Script
JSONSetElement ( "{}" ;
[ "id" ; Contacts::id ; JSONNumber ] ;
[ "name" ; Contacts::FullName ; JSONString ] ;
[ "active" ; 1 ; JSONBoolean ] ;
[ "tags" ; "[]" ; JSONArray ]
)Sign in to track your progress and pick up where you left off.
Sign in to FM Dojo