util.JSONObject.remove

Removes the specified element in the JSON object.

Syntax

util.JSONObject.remove(
   name STRING )
  1. name is the string identifying the JSON object property.

Usage

The remove() method deletes a name-value pair identified by the name passed as parameter.

IMPORT util
MAIN
    DEFINE obj util.JSONObject
    LET obj = util.JSONObject.create()
    CALL obj.put("address", "5 Brando Street")
    CALL obj.remove("address")
    DISPLAY obj.get("address")
END MAIN