Hi,
A small B4XLib library that contains a custom view 'spjson' to display json data.
You need the GestureDetector from Informatix
1 method :
It uses a B4XCanvas to draw the json tree.
you can download dummy json file here to test the library.
The library can handle large file, the only limit is the memory.
attached the B4XLib and an sample project (jsonviewer.zip)
Spsp
A small B4XLib library that contains a custom view 'spjson' to display json data.
You need the GestureDetector from Informatix
1 method :
- load(ajson as string) : pass a json string as parameter
- itemHeight : get/set item height, all texts, symbols.... are resized according to the itemHeight
- click(anode as spJsonNode) to handle a click on the name/value of a node
- longclick(anode as spJsonNode) to handle a longclick on the name/value of a node
It uses a B4XCanvas to draw the json tree.
you can download dummy json file here to test the library.
The library can handle large file, the only limit is the memory.
attached the B4XLib and an sample project (jsonviewer.zip)
Spsp