Brian Dunning's FileMaker Custom Functions

ScriptResultGetElement ( keyOrIndexOrPath )

Get a key, index, or path from a JSON formatted script result

  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:
ScriptResultGetElement ( "hello" )
  Sample output:
world
//assuming the output of Get ( ScriptResult ) is { "hello" : "world" }

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

Returns empty if the key, index, or path is empty, missing, or if the script result is not valid JSON, otherwise, returns the value at the specified key, index, or path.

 

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: