iOS Question JSON Error(ZWSP)

BensonHung

Member
Licensed User
Longtime User
HI~Everyone!
I use JSONGenerator to produce JSON string

JSON Source
Code: Copy
    'alist is a list from sqlite
    Dim sname As String = ""
    Dim jssonp As JSONGenerator
    jssonp.Initialize(alist)
    sname=jssonp.ToString

Content in JSON string have some error,
because it contain unicode text(ZWSP), please tell me how to solve it?
thank you everyone!!
 

Attachments

Last edited:
What is the problem?

the json string in notepad++ you can see '?' In the ANSI,
Because of this problem json string can not be validator.
you can see my attached file 'new 1.txt'
thank you Erel
 

Attachments

  • ANSI.png
    ANSI.png
    83.6 KB · Views: 545
  • UTF.png
    UTF.png
    77.5 KB · Views: 595
Upvote 0
I want upload JSON String to Web.
But after upload, server return error: JSON validator erro. string not JSON.
You can copy 'new1.txt' testing
thanks Erel.
 
Upvote 0
Back
Top