Array value of a JSON object can be modified. It can be simply done by modifying the value present at a given index.
Example: Modifying the value present at an index in array
I am bad
Note: If value is modified at an index which is out of the array size, then the new modification will not replace anything in the original information but rather will be an add-on.
Example: Modifying the value of index which is out of the array size.
I am Good bad
- Python | Ways to convert string to json object
- Convert Java Object to Json String using GSON
- Convert Json String to Java Object Using GSON
- Convert Java Object to Json String using Jackson API
- JSON web token | JWT
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.