Hi guys, I want to separate data that comes from json, in fact the data is coming from my api, I want to treat this data so that it is saved in an array, for example, the user in the database has two motorcycles of different rarities, I want to get the data coming in this way {"query":[{"id":1,"rarity":"1","animacao":"1"},{"id":2," rarity":"2","animacao":"2"}]}
and save it in the array, however I want to get only the value of the key and save it in each field of the array, for example rarity 1 is a motorcycle, and rarity 2 is another motorcycle. I would like a light. after it is already saved in the array, so the user can select which bike he will race with