Skip to content

jsonSearchValueOccurrence (JSON Creation & Manipulation)

Compatible with:
  • Purpose
  • This command is used to check for the occurence of a specific value in the JSON document, or, if a path argument is given, at a specific path within the document.
  • Syntax
  • jsonSearchValueOccurrence({Json/VariableName} || "val"(, path),VariableName)
  • [path is OPTIONAL] 
  • If path is not given, then the search_string should be on the first level of JSON. The search_string "val" should be enclosed in Double quotes if the search_string is an Object or an Array.
  • Target
  • {Json/VariableName} || "val"(, path)
  • Value
  • VariableName
  • Return Value
  • Returns 1 if the value is present in the path provided, else returns 0

Example(s):

Click here to see the example

 

Feedback and Knowledge Base