You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of now, updating/adding new key to JSON object is not straightforward . First a search needs to be done to get the object and then it needs to be updated. Instead why not have a JSON.Update() API just like JSON.search() ?
Adding new keys to the JSON object is even more complex. In the below fiddle the new array object ({"e" "f":}) does not get reflected in the original JSON object (data) on which search was done.
So if my application involves read/write of JSON objects the updation part becomes clumsy . https://jsfiddle.net/2kHDZ/122/
The text was updated successfully, but these errors were encountered:
SorrowfulBlinger
changed the title
Enhancement : How about adding new API's - SetKey , which would help update the JSON object in action
Enhancement : How about adding new API's - JSON.Update()/JSON.Add() - which would help update the JSON object in action
Nov 30, 2015
SorrowfulBlinger
changed the title
Enhancement : How about adding new API's - JSON.Update()/JSON.Add() - which would help update the JSON object in action
Enhancement : How about adding new API's - JSON.Update()/JSON.Add() - which would help update the source JSON object
Nov 30, 2015
As of now, updating/adding new key to JSON object is not straightforward . First a search needs to be done to get the object and then it needs to be updated. Instead why not have a JSON.Update() API just like JSON.search() ?
Adding new keys to the JSON object is even more complex. In the below fiddle the new array object ({"e" "f":}) does not get reflected in the original JSON object (data) on which search was done.
So if my application involves read/write of JSON objects the updation part becomes clumsy .
https://jsfiddle.net/2kHDZ/122/
The text was updated successfully, but these errors were encountered: