JSON Handling in FileMaker 2024: New Features and Best Practises

4 Feb 2025

In 2024, Claris FileMaker introduced several exciting enhancements to JSON handling, offering developers more powerful and efficient ways to work with this ubiquitous data format. As specialists in custom Claris FileMaker solutions, we at iSOS have been utilising these new features in real-world solutions and we are happy to report on the improvements in developing using JSON in Claris FileMaker applications and provide some overall good practices.

New JSON Features in Claris FileMaker

JSONMakeArray Function

One of the most anticipated additions to Claris FileMaker’s JSON arsenal is the JSONMakeArray function. This powerful new tool simplifies the creation of JSON arrays from a list of values. The syntax for JSONMakeArray is:

JSONMakeArray ( listOfValues ; separator ; type )

This function streamlines the process of converting delimited lists into JSON arrays, a task that previously required more complex formatting by substituting characters, using While loops, creating Custom Functions or other calculation functions.

Enhanced JSONSetElement Functionality

Claris FileMaker has introduced two new operators to the JSONSetElement function which again makes it far easier to push elements onto an array and work with the last element in an array:

The [+] operator references a new, to-be-created element at the end of the array

The [:] operator references the last, already-existing element in the array

These operators significantly simplify array manipulation, allowing for more intuitive and readable code without having to manually record array indexes in calculations/scripts.

JSONSetElement( "[]";

[ "[+].id", 1, JSONNumber ] ;

[ "[:].name", "Jimmy", JSONString ] ;

[ "[+].id", 2, JSONNumber ] ;

[ "[:].name", "Sally", JSONString ]

)

Output:

[{"id":1,"name":"Jimmy"},{"id":2,"name":"Sally"}]

Improved JSONGetElement

The JSONGetElement function has also been enhanced to allow easier retrieval of the last value in a JSON array. This improvement similarly eliminates the need for complex workarounds that were previously necessary.

Using the new operator on the previous JSON example as follows:

JSONGetElement ( $NameListJSON ; "[:]" )

Will output:

{"id":2,"name":"Sally"}

Best Practices for JSON Handling in Claris FileMaker

  1. Use the Data Viewer: When working with JSON, make extensive use of Claris FileMaker’s Data Viewer. It allows you to experiment with JSON functions and see immediate results, helping you grasp the nuances of JSON manipulation.

  2. Start Small: Begin by creating simple JSON structures to represent basic data, like single records. Gradually move to more complex structures involving arrays and nested objects as you become more comfortable.

  3. Leverage New Functions: Take full advantage of the new JSONMakeArray function and enhanced JSONSetElement functionality. These tools can significantly reduce the complexity of your scripts and improve performance.

  4. Maintain Consistent Naming: When working with JSON, maintain consistent naming conventions between your Claris FileMaker fields and JSON keys. This practice can simplify your code and reduce errors when parsing JSON data.

  5. Use JSONFormatElements for Debugging: The JSONFormatElements function can make your JSON data more readable during the development process. This is particularly useful when dealing with complex JSON structures.

  6. Be Mindful of Case Sensitivity: Remember that JSON is case-sensitive, unlike Claris FileMaker variables. Pay close attention to the case when working with JSON keys and values.

  7. Validate JSON Data: Before using JSON data in your scripts, validate it using functions like JSONFormatElements or JSONGetElementType to ensure it’s properly formatted.

Conclusion

The new JSON features available when using Claris FileMaker offer a significant improvement for developers. By leveraging these enhancements and following best practices, you can create more efficient, maintainable, and powerful Claris FileMaker solutions that effectively handle JSON data.

At iSOS, our team of 8 certified developers with over 93 years of combined experience is ready to help you harness the full potential of these new JSON capabilities in your custom Claris FileMaker solutions. Whether you’re integrating with web services, building complex data structures, or optimising your existing applications, we have the expertise to guide you through the process.


Let's Work Together

Let's Work Together

Let's Work Together

Latest Blog

Stay up to Date with the Latest News

17 Jan 2025

Claris Connect: Smarter Steps, Stronger Workflows

17 Jan 2025

Claris Connect: Smarter Steps, Stronger Workflows

17 Jan 2025

Claris Connect: Smarter Steps, Stronger Workflows

23 Dec 2024

Our Journey with Claris Studio and Connect

23 Dec 2024

Our Journey with Claris Studio and Connect

23 Dec 2024

Our Journey with Claris Studio and Connect

3 Oct 2024

AI in 2024: Adapt, Innovate, or Risk Falling Behind

3 Oct 2024

AI in 2024: Adapt, Innovate, or Risk Falling Behind

3 Oct 2024

AI in 2024: Adapt, Innovate, or Risk Falling Behind

Ready to Elevate Your Digital Presence?

Don't get left behind

Ensure your business stays ahead with cutting-edge digital solutions. Contact us today to keep your company at the forefront of your industry and continue thriving.

Stay Connected with iSOS

At iSOS.com, we specialise in custom software development, web development, and IT consultancy, leveraging Claris FileMaker, Laravel, and AI technologies to create tailored digital solutions that enhance business efficiency and maximise ROI.

Copyright: © 2025 iSOS. All Rights Reserved.

Ready to Elevate Your Digital Presence?

Don't get left behind

Ensure your business stays ahead with cutting-edge digital solutions. Contact us today to keep your company at the forefront of your industry and continue thriving.

Stay Connected with iSOS

At iSOS.com, we specialise in custom software development, web development, and IT consultancy, leveraging Claris FileMaker, Laravel, and AI technologies to create tailored digital solutions that enhance business efficiency and maximise ROI.

Copyright: © 2025 iSOS. All Rights Reserved.

Ready to Elevate Your Digital Presence?

Don't get left behind

Ensure your business stays ahead with cutting-edge digital solutions. Contact us today to keep your company at the forefront of your industry and continue thriving.

Stay Connected with iSOS

At iSOS.com, we specialise in custom software development, web development, and IT consultancy, leveraging Claris FileMaker, Laravel, and AI technologies to create tailored digital solutions that enhance business efficiency and maximise ROI.

Copyright: © 2025 iSOS. All Rights Reserved.