Skip to content

jsonRemoveFromObject (JSON Creation & Manipulation)

Compatible with:
  • Purpose
  • This command is used to remove data from a JSON document. 
  • If the JSON document supplied in input is invalid, command fails with error "INVALID_JSON"

    The document produced by evaluating one path becomes the new value against which the next path is evaluated.

    It is not an error if the element to be removed does not exist in the document; in that case, the path does not affect the JSON.

    If the path is "$" or contain wildcard characters, command fails with error "One of the JSON Path is either Null or having wild card characters"

  • Syntax
  • jsonRemoveFromObject({Json/VariableName} || path(, path),VariableName)
  • Target
  • {Json/VariableName} || path(, path)
  • Value
  • VariableName
  • Return Value
  • JSON Document

Example(s):

Click here to see the example

 

Feedback and Knowledge Base