Android Question JSON library unterminated string error

Devv

Active Member
Licensed User
Longtime User
i got this strange error

i dont understand is this a bug i JSON library, because i got it without me changing any thing with my code
 

Devv

Active Member
Licensed User
Longtime User
Please edit the thread title and remove the exclamation mark. No need to "shout" at other members who like to help you.
i did not meant to shout this is an Exclamation mark not a shouting mark
any way how can i edit the title, i couldn't find that option ?

EDIT: Never mind found it, and edited it
 
Last edited:
Upvote 0

Devv

Active Member
Licensed User
Longtime User
You're showing us just some incomplete data. Maps start with a { and end with a }. As you see there's no } so the data is wrong. The message is correct.

thanks for replay
here is the complete one (it is soo big so i placed it in zip file)
please find it in this postattachments
 

Attachments

  • JSON.zip
    14.5 KB · Views: 266
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
B4X:
Dim parser As JSONParser
parser.Initialize(<text>)
Dim root As Map = parser.NextObject
Dim rss As Map = root.Get("rss")
Dim channel As Map = rss.Get("channel")
Dim item As List = channel.Get("item")
For Each colitem As Map In item
Dim twitter_description As String = colitem.Get("twitter_description")
Dim dc_identifier As String = colitem.Get("dc_identifier")
Dim twitter_card As String = colitem.Get("twitter_card")
Dim og_title As String = colitem.Get("og_title")
Dim link As String = colitem.Get("link")
Dim dc_format As String = colitem.Get("dc_format")
Dim description As String = colitem.Get("description")
Dim dc_creator As String = colitem.Get("dc_creator")
Dim og_type As String = colitem.Get("og_type")
Dim og_url As String = colitem.Get("og_url")
Dim title As String = colitem.Get("title")
Dim dc_language As String = colitem.Get("dc_language")
Dim pubDate As String = colitem.Get("pubDate")
Dim og_image As String = colitem.Get("og_image")
Dim twitter_image As String = colitem.Get("twitter_image")
Dim twitter_creator As String = colitem.Get("twitter_creator")
Dim twitter_site As String = colitem.Get("twitter_site")
Dim og_description As String = colitem.Get("og_description")
Dim guid As String = colitem.Get("guid")
Dim twitter_title As String = colitem.Get("twitter_title")
Dim category As List = colitem.Get("category")
For Each colcategory As String In category
Next
Next
Dim link As String = channel.Get("link")
Dim description As String = channel.Get("description")
Dim title As String = channel.Get("title")
Dim @attributes As Map = rss.Get("@attributes")
Dim version As String = @attributes.Get("version")
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…