Strange error in JSON file

 

Hi guys.

We're experiencing a strange issue with a JSON file here.
'Strange', because.
- the file is generated by Axy itself
- it's valid in any other JSON or code editor
- we did not change the Axy logic that generates the file for weeks
- the file *used* to work in Axy for weeks
- now Axy suddenly throws an error: Error in JSON: (14,3): ',' expected

We seriously have no idea why this would happen, but maybe someone could shed some light?
Here's the file:{ "Camera": 2, "Path": 2, "ContentNum": 1, "ContentActive": true, "TA_SystemInfo":  { "ControlRoomIP": "192.168.99.32", "StudioID": "01", "LocalSubnet": "192.168.99.", "MachineName": "B003-REGIE-02", "SystemFolder": "D:\\Aximmetry_UE5\\Stuff\\" }, "Room": "B003-TS", "pause": 50010, "SaveDate": 77629}


   EricWest

 
Profile Image
EricWest
  -  

PS:

Even when you copy the JSON part from above, 
paste it into a TextBlock in Axy,
and add a JSON Text right after,
Axy throws the same error,
while pasting into any JSON validator doesn't show any issue at all....
Odd, eyh?


 
Profile Image
Eifert@Aximmetry
  -  

Hi Eric,

It is because the backslash at the end of the text: "SystemFolder": "D:\\Aximmetry_UE5\\Stuff\\"
While it is not fixed in Aximmetry, you can fix it with a Text Replace module before converting the JSON into a collection:

If your text can have single backslashes, then you should replace \" instead of \\" and do that twice.

We apologize for any inconvenience this issue may have caused.

Warmest regards,

 
Profile Image
EricWest
  -  

Hi Eifert.

Thanks for the hackaround, works like a charme... :-)
It's still strange though, that our setup *used* to work and suddenly that error occured.
But, hey, it's working now again, so it's all shiny... :-)

 
Profile Image
Eifert@Aximmetry
  -  

Hi Eric,

We're thrilled to announce that the issue you reported has been successfully addressed in our most recent release, Aximmetry Version 2023.3.1, which has just been launched. The JSON Text module now functions even with values that have double slashes ("\\").
Thank you for your patience and ongoing support. We deeply appreciate it.

Warmest regards,