Brian Dunning's FileMaker Custom Functions

@JSON_count_subobjects ( json ; path_to_object )

Return the number of rows in JSON Array

  Be the first to rate this function Log in to vote

Oliver Reid   Oliver Reid - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
@JSON_count_subobjects ("{\"Rows\" : [{\"1\":1},{\"2\":2},{\"3\":3}]}";"Rows")
  Sample output:
3

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

Useful for calculation or script to loop through array rows to find a specific value

 

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 20 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: