skip to Main Content

Transform a series of JavaScript object keys into array(s) when they contain numbers

I have this object: { name: "Gold's Gym Venice", "categories[0].alias": "gyms", "categories[0].title": "Gyms", "categories[1].alias": "healthtrainers", "categories[1].title": "Trainers", "location.state": "CA", "location.city": "Venice", "location.zip_code": "90291", "location.display_address[0]": "360 Hampton Dr", "location.display_address[1]": "Venice, CA 90291" } ... and am trying to transform it into…

VIEW QUESTION
Back To Top
Search