B4J Question JSONGenerator

madru

Active Member
Licensed User
Longtime User
good afternoon,

can somebody help me to generate this JSON structure.?

JSON:
{
  "vehicle": [
    {
      "Position": {
        "dyn": 0.0,
        "lat": 12.34567890000000,
        "lon": 23.45678900000000
      },
      "channel": 1234,
      "identification": {
        "Type": "loader",
        "manufacturer": "MAN",
        "model": "TGX"
      }
    }
  ],
  "level": 100,
  "timestamp": 1585835426726
}
 

DonManfred

Expert
Licensed User
Longtime User
What have you tried so far????
Have you checked the methods jsongenerator has? Let me answer for you; NO, you did not.

A tip: the jsongenerator can be initialized with giving a MAP.
 
Upvote 0

madru

Active Member
Licensed User
Longtime User
Thx Erel, appreciate your help as always

I missed the 'Array' adding the objects, ended up with
Untitled.png

instead of
Untitled 2.png
 
Upvote 0
Top