Unify API design, testing, documentation, and monitoring in one platform. Build, collaborate, and innovate faster with seamless Git and gateway integrations.
Hi, I need the JSonGenerator to produce JSon like shown below. How can I achieve these examples with list/map/type? I sometimes need 5 or 6 variables within a record, so I though a type would be perfect for this. It would be nice to have a JSonBuilder object :). 1st example...
www.b4x.com
The example in the linked will give you this JSON output.
And you can parse the JSON data back with this code
B4X:
Dim parser As JSONParser
parser.Initialize(<text>)
Dim root As Map = parser.NextObject
Dim Key2 As String = root.Get("Key2")
Dim Key As String = root.Get("Key")
The search engine on this absolutely fabulous forum does in fact work you know @Rafi Fahreza, just search for it. There is probably more up to date links and information, but I've got other things that I have to start doing now, like starting to cook the dinner..
The HttpServer library is a new library, based on an open source project named Jetty. This library allows you to easily embed an Http server in your application. Http server means that you can point a browser to the device IP address (and relevant port) and communicate with your app. It can be...