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 ""/Null in your JSON collection: > > Dim c As New JSONCollection > Dim s As String = "{ "id": 1} > > c = JSON.Decode(s, True) > >
For information, in the next Gambas version, JSON class has been moved to a new 'gb.util.web' component so that it can be used without 'gb.web'. Regards, -- Benoît Minisini ------------------------------------------------------------------------------ New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user