There is no difference between the two data. If you want to observe, you can just drag the columns into the order you like in the database. How the client puts them has nothing to do with the order. If you must change the order from the second to the first, you probably have to change the field names. aid, btext and children should be your order. But with this change, are you sure your boss won't hit you?
JSON data cannot be output in the order you specify, because you did not tell the JSON parser to output it in that order. If you have to output in order, you can directly write a program to implement it.
The json format output is not sorted according to the dictionary. You can output the first type in json, JSON.stringify(Object, function, number), you can change the output result. You may not know JSON.stingify()
There is no difference between the two data. If you want to observe, you can just drag the columns into the order you like in the database. How the client puts them has nothing to do with the order.
If you must change the order from the second to the first, you probably have to change the field names.
aid, btext and children should be your order. But with this change, are you sure your boss won't hit you?
JSON data cannot be output in the order you specify, because you did not tell the JSON parser to output it in that order. If you have to output in order, you can directly write a program to implement it.
The json format output is not sorted according to the dictionary. You can output the first type in json, JSON.stringify(Object, function, number), you can change the output result. You may not know JSON.stingify()
According to the standard, JSON is unordered (KEY natural order)
Chrome and Firefox both follow this standard, so c will definitely be ranked in front of d
What does the order matter? It is in the form of key value. Can't you just get it directly when you use it?