When i was writing the pmtemplates application i used the JSON Tree application to visualize the JSON structure.
An example:
If you designed a layout like this: tf1 = Text Field, btn1 = Button and clv1 = Custom List View.
Then the converted .bjl layout file will have this JSON structure (provided you use only 1 variant):
Drilling down in this structure give these details:
And for the data:
And then you can look at the :kids map:
For the first kid:
And so on for the other kids...
The JSON tree application also provides the B4X code to build the tree structure.
Some questions about this structure:
- are all the attributes required?
- (as you mentioned already) where can you find the correct javaType?
- what will be the structure if you use Designer Script?
- ...