I have an array of JSON objects that looks like this:
var array_json = [{"my":{"id":144,"price":12500000}},
{"my":{"id":145,"price":13500000}},{"my":{"id":146,"price":13450000}},
{"my":{"id":147,"price":11500000}},{"my":{"id":148,"price":15560000}}]
My goal is to remove the "my" key from each object while keeping the other information intact. Essentially, I want it to look like this:
array_json = [{"id":144,"price":12500000},{"id":145,"price":13500000},
{"id":146,"price":13450000},{"id":147,"price":11500000},
{"id":148,"price":15560000}]
Is there a way to achieve this?
Thank you.