"Unexpected end of JSON input" error

Stimulsoft Reports.JS discussion
Nighty
Posts: 8
Joined: Sat Oct 15, 2016 4:48 pm

Re: "Unexpected end of JSON input" error

Post by Nighty »

Hello, sorry for not responding to the skype petition on the email, but I finally found the issue.

The data tables I'm using feature special characters like 'ó', which cause the JSON parsing errors. Changing all the 'ó' characters to simple 'o' fixes the issue and renders the report properly.

Can I add an UTF-8 encoding command in my script to prevent this issue?
Attachments
Captura2.PNG
Captura2.PNG (30.29 KiB) Viewed 2617 times
Captura.PNG
Captura.PNG (53.31 KiB) Viewed 2617 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: "Unexpected end of JSON input" error

Post by Alex K. »

Hello,

Please check the file from the attachment and let us know about the result.

Thank you.
Attachments
mssql.zip
(1.16 KiB) Downloaded 270 times
Nighty
Posts: 8
Joined: Sat Oct 15, 2016 4:48 pm

Re: "Unexpected end of JSON input" error

Post by Nighty »

The attached file fixes the issue completely, thank you!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: "Unexpected end of JSON input" error

Post by Alex K. »

Hello

We are always glad to help you!
Let us know if you need any additional help.

Thank you.
Post Reply