Skip to content

jsonGetLength (JSON Creation & Manipulation)

Compatible with:
  • Purpose
  • This command is used to get number of elements present in the JSON document.
  • If the JSON document supplied in input is invalid, command fails with error "INVALID_JSON".
  • If the path mentioned is not part of the JSON document, command fails with error "INVALID_JSON_PATH"
  • Syntax
  • jsonGetLength({Json/VariableName}||{path/VariableName},VariableName)
  • Target
  • JSONString/VariableName||{path/VariableName}
  • Value
  • VariableName
  • Return Value
  • Returns the length of JSON document, or, if a path argument is given, the length of the value within the document identified by the path.

Example(s):

Click here to see the example

 

Feedback and Knowledge Base