B4J Question [BANano] [SOLVED] How does BANano.IsJSON(?) supposed to work?

Mashiane

Expert
Licensed User
Longtime User
Ola

My BANano.IsJson is returning false. I'm passing it the result of a JSON string?

B4X:
Dim articlesJSON as string = $"{"status":"ok","totalResults":10,"articles":[{"source":{"id":"techcrunch","name":"TechCrunch"},"author":"Sarah Perez","title":"This Week in Apps: App Store outrage, WWDC20 prep, Android subscriptions change","description":"Welcome back to This Week in Apps, the Extra Crunch series that recaps the latest OS news, ..."$

B4X:
Log(BANano.IsJson(articlesJSON))

This returns false, perhaps I'm using it wrongly. I want to use this before I execute

B4X:
m = BANano.FromJSON(articlesJSON)

Thanks.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…