Other JsonTree - Tool to help with JSON parsing (B4A / B4J) - Erel    Apr 24, 2022   (43 reactions)   tags: JsonTree, Online http://www.b4x.com/basic4android/images/SS-2013-12-23_10.11.49.png JsonTree is a tool that helps developers to parse and understand JSON strings. It shows the data structure in a TreeView and... that variables in the generated code are based on the JSON fields. It may produce invalid identifiers... can be downloaded here: www.b4x.com/b4j/files/JsonTree.jar An online version of this tool is available here: http://basic4ppc.com:51042/json/index.html The source code is attached. Updated project... Tool [B4X] JsonLayouts - synchronize json and binary layouts - Erel    Jun 26, 2025   (22 reactions) The purpose of this tool is to automatically generate json layout files, and synchronize them...: https://www.b4x.com/b4j/files/JsonLayouts.jar 2. Add this code to Main module: #Macro: After Save, Sync Layouts, ide://run?File=%ADDITIONAL%\JsonLayouts.jar&Args=%PROJECT%&Args=%PROJECT_NAME% #Macro: Title, JsonLayouts folder, ide://run?File=%WINDIR%\explorer.exe&Args=%PROJECT%\JsonLayouts The tool will run whenever the project is saved, and that includes running the project if... B4J Library [B4X] BalConverter - Convert the layouts files to JSON (and vice versa) - Erel    Jan 17, 2019   (28 reactions)   tags: Eshe, files, convert, bal, layouts BalConverter is a B4J app (desktop app) that converts between the designer layout files and JSON format. This allows you to edit the layout with a text editor. Note that the format is not so simple... are not deleted. It filters the files based on the extension (bal or bal.json). http://www.b4x.com/basic4android/images/SS-2014-06-01_17.03.59.png The JSON format is made of three main elements: http... encoded. This means that it can be modified in the json file. - Layout recreated with the internal... B4A Tutorial Android JSON tutorial - Erel    Feb 7, 2021   (13 reactions)   tags: Json JSON format is a a format similar to XML but usually it is shorter and easier to parse. Many web services now work with JSON. JSON official site: JSON Using the new JSON library, you can parse and generate JSON strings easily. As an example we will parse a the following JSON string: {"menu...()"} ] } }} This example was taken from json.org/examples. Curl brackets represent an object... of objects, and print the values of the "value" element. After parsing the string, JSON... B4J Tutorial [Server] Online Json Tree Example - Erel    Jul 6, 2023   (4 reactions) This example is a port of the following desktop example: http://www.b4x.com/android/forum/threads/jsontree-tool-to-help-with-json-parsing-b4a-b4j.35963/ http://www.b4x.com/basic4android/images/SS-2014-03-20_11.43.42.png You can try it online: https://b4x.com:51041/json/index.html The server parses the JSON string and returns the tree representation and also the B4A / B4J code you need in order to parse it. The code is similar to the desktop solution code. The main difference... B4A Tutorial Convert collections to json and vice versa - Erel    Mar 27, 2022   (32 reactions) The JSON libraries, which are internal libraries, were updated. The new version is 1.20. There is a new JSON type which is used to convert maps or lists to json strings and vice versa, using the new... it as "JSON" and then convert it to a string or a collection. It looks like this: Dim m As Map = CreateMap("asdasd": Array(1, 2, 3, 4)) Dim s As String = m.As(JSON).ToString 'equivalent to: Dim jg As JsonGenerator jg.Initialize(m) Dim s As String = jg.ToPrettyString(4... B4J Question How to know if string is parseable as JSON "list" or "Map" - jmon    Oct 5, 2022 Hi, I would like to be able to determine if a JSON string will be parseable as a LIST or as a MAP before processing it. Am I missing something, or is the only way to know is to test the first character? ""{" = MAP Dim json As JSONParser json.Initialize(StdOut) If json.IsInitialized Then If StdOut.StartsWith(" For Each Program As Map In json.NextArray 'processing as a list of map Next Else Dim Program As Map = json... Share My Creation [Web][SithasoDaisy 2.5] LIBS.JSON Generator for Aeric's Additional Libraries Downloader - Mashiane    Aug 27, 2025   (1 reaction) . This however needs a libs.json file for it to work. The purpose of this tool is to generate the libs.json file from Erel's b4x library index for your platform of choice. 166360 Step 1 1... the platform specific libs.json file. NB. This tool greatly depends on the b4a, b4i, b4i, b4r (file.../threads/sithasodaisy2-lets-create-a-libs-json-generator-for-aerics-additional-libraries-downloader.168361... B4A Question fix broken JSON string - ilan    May 1, 2024 hi i am getting a json string from a library but sometimes there is a missing comma (,) at the end of the line and parsing is throwing an error. looks like this: { "metadata":{ "key":"value", "key":"value", "key":"value", "key":"value", "metadata2":{ "key"... can i check if the json is a valid json and fix it if needed (add the missing commas) i could do... B4R Code Snippet JSON Parsing - Erel    Jul 7, 2019   (13 reactions) Two methods to help parse JSON strings: Sub Process_Globals Public Serial1 As Serial Private... GetTextValueFromKey (json() As Byte, Key() As Byte, StartIndex As Int, ResultBuffer() As Byte..., quotearray)) Dim i As Int = bc.IndexOf2(json, qkey, StartIndex) If i = -1 Then bc.ArrayCopy(Array As Byte(), ResultBuffer) Return End If Dim i1 As Int = bc.IndexOf2(json, quotearray, i + qkey.Length + 1) Dim i2 As Int = bc.IndexOf2(json, quotearray, i1 + 1) bc... Page: 1   2   3   4   5   6   7   |