Skip to content

jsonAssertValidity (JSON Creation & Manipulation)

Compatible with:
  • Purpose
  • This command is used to check if the input provided is a valid JSON document.
  • If the input is not a valid JSON document, the command fails with error "INVALID_JSON".
  • Syntax
  • jsonAssertValidity({Json/VariableName},VariableName)
  • Target
  • JSONString/VariableName
  • Value
  • VariableName
  • Return Value
  • Returns "true" if input is valid doc else returns false.

Example(s):

Click here to see the example

 

Feedback and Knowledge Base