I'm trying to access values from a JSON object, however, its formatting won't allow me to use the traditional methods of doing so. For example the formatting would be as follows:
{
"123456789" : 0
"12345678910" : 14
}
How would I be able to access the name and the value of the first field? ex. 123456789 and 14. I'ved tried to stringify the objects and just treat it as a regular string and finding the first instance of " and last instance of " to get the name and then finding the index of : and adding 1 to get the value. However, I don't think it would be efficient neither fully accurate. Is there a way to convert this JSON Object to a 2D Array? to access it more easily?
EDIT: I won't actually know the IDs stored in the JSON Object, they are randomly generated, which is why I've stated my previous solutions before and I won't be able to use traditional methods. So I need to find a way to grab the name and value without actually knowing them. Which is why storing a JSON object in a 2D array would be most useful but I need to know if it's possible