Re: [Gambas-user] JSON Parsing

2017-09-10 Thread Brad Doyle via Gambas-user
Hi Charlie Awesome! Thank you so much! Sincerely, Brad R. Doyle On Sunday, September 10, 2017, 8:06:50 AM GMT-4, Charlie Ogier wrote: On 09/09/17 17:24, Brad Doyle via Gambas-user wrote: > Anyone have any working example of JSON parsing. Following the example I > found online, I ca

Re: [Gambas-user] JSON Parsing

2017-09-10 Thread Charlie Ogier
On 09/09/17 17:24, Brad Doyle via Gambas-user wrote: Anyone have any working example of JSON parsing. Following the example I found online, I can get the list of primary keys, but any attempt to access any of the columns results in a NULL return. Once the decode is executed I get the key value

[Gambas-user] JSON Parsing

2017-09-09 Thread Brad Doyle via Gambas-user
Anyone have any working example of JSON parsing. Following the example I found online, I can get the list of primary keys, but any attempt to access any of the columns results in a NULL return. Once the decode is executed I get the key values, but attempts to retrieve any other column results in

Re: [Gambas-user] JSON Parsing

2015-01-16 Thread Benoît Minisini
Le 16/01/2015 15:15, Alexie a écrit : > JSON.Decode is standard in Gambas and works very good. It is in the > "gb.web" component. > > If you read the data as "string", you can do as follows: > > Dim c As New Collection > Dim s As String = "{ "id": 1} > > c = JSON.Decode(s) > > Or if you want ""/Nul

Re: [Gambas-user] JSON Parsing

2015-01-16 Thread Alexie
JSON.Decode is standard in Gambas and works very good. It is in the "gb.web" component. If you read the data as "string", you can do as follows: Dim c As New Collection Dim s As String = "{ "id": 1} c = JSON.Decode(s) Or if you want ""/Null in your JSON collection: Dim c As New JSONCollection

[Gambas-user] JSON Parsing

2015-01-16 Thread Nigel Verity
Hi I would be interested to know whether any Gambas users have already created a parser for JSON format data, and would be willing to share the relevant code. I foresee a need to import data from JSON files over the coming months. It would save some time if I could avoid having to "reinvent the