LogoLogo
About
  • Home
  • Guides
  • BDK
  • REST API
  • JSON
    • Overview
  • Converting JSON to String
  • Getting Data from JSON
  • Creating and Merging JSON Objects
  • Modifying JSON
Powered by GitBook
On this page
  • Setting or Changing Values
  • Deleting a Key

Was this helpful?

Export as PDF

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 1 month ago

Was this helpful?