Modifying JSON
Setting or Changing Values
To set or change a value in a JSON object, use the following syntax:
get the json
the json's age is 23
get the json
set the json's name to "John Doe"
get the json
change the json's "settings.notifications.enabled" to false
Deleting a Key
To delete a key from a JSON object, use the following command:
get the json
delete the json's username
These commands allow you to modify JSON objects by setting, changing, or deleting specific keys and their values.
Last updated
Was this helpful?