The native json is seemly very buggy, perfectly valid json files generate all sorts of stupid errors.
For example this:
{
"en":{
"test_string":"this is a test string",
"test_string2":"this is a test string"
},
"pt":{"test_string":"como vai você?"},
"fr":{"test_string":"je ne parle pas francais"}
}
results in Expected object key string but found T_OBJ_BEGIN at character 4 (T_OBJ_BEGIN in is a enum that means '{')
this file IS valid, and should have worked, but it does not.
Anyone know a way to fix it? (ie: a hack on my json file, or a hack on the json library...)
Comments
Because this works perfectly for me:
I found out the issue was in (several) other files.
It is extra commas, the native json hate them (but other json parsers I tested don't care).
Likes: ar2rsawseen