Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3738

How can I delete an attribute from a JSON object using a put call [closed]

$
0
0

I have a few JSON object with the structure:

{"id": "2","data": {"name": "Preeti Priya","age": "23","yoe": "7"}},

I want to make it like:

{"id": "6","name": "sam","age": "22","yoe": "33"}

Through a put call,but when I did it, it became something like:

{"id": "1","data": {"name": "Preeti Priya","age": "23","yoe": "7"},"name": "p","age": "2","yoe": "2"},

Viewing all articles
Browse latest Browse all 3738

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>