May 6, 2026 Hi, 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 1 property : itemHeight : get/set item height, all texts, symbols.... are resized according to the itemHeight 2 events : 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 The class spJsonNode has getter to retrieve some informations like 'path', 'type', 'name'.... 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 Attachments spjson.b4xlib spjson.b4xlib 5.3 KB · Views: 161 jsonviewer.zip jsonviewer.zip 133.4 KB · Views: 164 Click to expand...
Hi, 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 1 property : itemHeight : get/set item height, all texts, symbols.... are resized according to the itemHeight 2 events : 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 The class spJsonNode has getter to retrieve some informations like 'path', 'type', 'name'.... 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