iOS Question JSON Error(ZWSP)

BensonHung

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

JSON Source
B4X:
    '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

  • new 1.txt
    1.1 KB · Views: 205
Last edited:

BensonHung

Member
Licensed User
Longtime User
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: 221
  • UTF.png
    UTF.png
    77.5 KB · Views: 241
Upvote 0

BensonHung

Member
Licensed User
Longtime User
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
Top