Android Question Parse DBUTILS.ExecuteJSON string in VB.NET

Bob Spielen

Active Member
Licensed User
Longtime User
Need some help,
I serialzed SQL_vars to a string with DBUTILS.ExecuteJSON in B4A. How do I parse the string to read the values back in VB.NET using Newtonsoft.Json.Linq reference?
Thanks a lot in advance!!!!
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

Ohanian

Active Member
Licensed User
Longtime User
Need some help,
I serialzed SQL_vars to a string with DBUTILS.ExecuteJSON in B4A. How do I parse the string to read the values back in VB.NET using Newtonsoft.Json.Linq reference?
Thanks a lot in advance!!!!

Hi,

Create a .net class from your json :

B4X:
https://jsonutils.com/

and then deserialize your json :

B4X:
   Dim oResponseClass As New ResponseClass
            oResponseClass= JsonConvert.DeserializeObject(Of oResponseClass)(sResult)
 
Upvote 0

Bob Spielen

Active Member
Licensed User
Longtime User
Hi,

Create a .net class from your json :

Mr. Ohanian, I just want to thank you very much for orientations, because as you know json is very simple for many guys, but some time the answer is just in front of our eyes and we don't see it.
THANKS A LOT!
 
Upvote 0
Top