Skip to main content

All Questions

Tagged with
0 votes
1 answer
232 views

Updating value inside of json file

Is it possible to update a value inside of json file when a button is click? For example is this: { "caught": "0", "id": 1, "location": "River", "north": "Nov ~ Mar", "price": 900,...
Jay Rhick's user avatar
1 vote
0 answers
65 views

Create a JSON object updater

I'm working with a specific JSON object in javascript that contains multiple non fixed properties (I mean properties that can change in the future). I've been working in something like: { "...
DaGLiMiOuX's user avatar
-4 votes
1 answer
38 views

i want to modify a property value of json using angularjs1 but after modification it replace the whole json

i have a dynamic JSON { "data": { "cols": ["3016", "3017", "3018", "3019", "3020", "3021", "3022", "3023"], "consumer_desc": " ", "form_id": "16", "ph_id": "409", "seasons": ["1", ...
user1490238's user avatar
0 votes
1 answer
39 views

Adding string as key in javascript JSON [duplicate]

I am trying to update JSON based on user input. I have an existing JSON array: colorDataInitial = { "ML1TEST1" : "#120101", "ML1TEST2" : "#120101", "ML1TEST3" : "#120101", "ML1TEST4" : "...
EHarpham's user avatar
  • 622
1 vote
1 answer
1k views

JQuery set value for the json: path provided as string

I have a string that carry the path of a nested json, where I need to update a value var path = 'p_Data[0]["BusinessUnit"][0]["BusinessUnit"]' if i evaluate this path I get value as 'Unit1'. I need ...
Okky's user avatar
  • 10.4k