Brian Dunning's FileMaker Custom Functions

JSONGetElementWhere ( json ; element ; where ; operator ; criteria )

Get a desired element from a JSON array

  Be the first to rate this function Log in to vote

Jake Scheele   Jake Scheele - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
JSONGetElementWhere ( "[{\"status\":\"active\"},{\"status\":\"inactive\"}]" ; "~i" ; "status" ; "=" ; "active" )
  Sample output:

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

This function will return the desired element or index number when passed a valid JSON array and criteria.

Note: This function currently only grabs 1 value. You can only grab a unique value, not multiple. This may be changed in the future.



Kyle Williams   Kyle Williams, Dreamclinic Massage
May 11, 2021

Log in to post comments.


Note: these functions are not guaranteed or supported by 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 16 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: