After receiving data in JSON format from a Java application, I encountered a parse error when the key was of type Long:
1: {
"CONGESTION": 1,
"ANSWER": 7
}
However, after changing the key to a String as shown below:
"1": {
"CONGESTION": 1,
"ANSWER": 7
}
I no longer experienced any errors. Is it necessary for keys to be of type String? What is causing issues with Long type keys?
Any help would be appreciated. Thanks!