Brian Dunning's FileMaker Custom Functions

JSONKeyExists ( json ; keyOrIndexOrPath )

Determine if a key exists in a JSON object (even if it is empty)

  Be the first to rate this function Log in to vote

Jason Wood   Jason Wood - Show more from this author
Define Database
https://www.definedatabase.com

  Sample input:
JSONKeyExists ( "{\"test\":\"\"}" ; "test" )
  Sample output:
1

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Returns true if the specified key, index, or path exists in the provided JSON object. Returns false otherwise (including if the JSON is not valid).

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 21 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: