B4A Tutorial B4x / PHP compatibility thread - KMatle    Sep 30, 2017   (12 reactions) JsonList.Initialize JsonMap.Initialize JsonMap.put("uname", "Klaus") JsonMap.put("upw", "test") JsonMap.put("umail", "kk@kk.de") JsonList.add(JsonZeileMap) Dim JSONGenerator As JSONGenerator JSONGenerator.Initialize2(JsonList) Dim JSONstring As String JSONstring = JSONGenera B4A Tutorial [B4X] "Code Smells" - common mistakes and other tips - Erel    Sep 06, 2023   (84 reactions) These formats are far from being trivial and with all kinds of edge cases that no one remembers.
'bad
Dim s As String = "{""version"":""" & Version & """,""colors"":}"
'good
Dim jg As JSONGenerator
jg.Initialize(CreateMap("colors": Array("red", "green", "blue"), "version": Version))
Log(jg.ToPrett Italian B4J - File JSON - emexes (first post)    Sep 10, 2019   (2 reactions) Eg:
...
Dim JSONGenerator As JSONGenerator
JSONGenerator.Initialize (MapS)
mapS.Put("serviceName", "Il servizio più eccellente di sempre")
JSONGenerator.Initialize (MapS) B4A Example [B4X] Supabase - Realtime Presence - Alexander Stolte    Nov 28, 2023   (3 reactions) This will trigger the sync and leave event handlers. Channel1.Untrack Events Private Sub Realtime_PresenceDataReceived(PresenceData As SupabaseRealtime_PresenceData) Log("Presence data:") Dim json As JSONGenerator json.Initialize(PresenceData.Joins) Log("Joins: " & json.ToS B4A Question Can JSON [library] generate json string with keys in order - Erel (first post)    Feb 27, 2019 I see the problem. JsonGenerator is based on the Android native Json SDK. In newer versions of Android the internal SDK preserves the order of items. This is not the case in older versions.
B4A Map does preserve the order. The "problem" here is in the native implementation. You will need to seriali B4A Question Trying to connection - Cenny (first post)    Feb 01, 2024 So I tried this...
Dim JSONGenerator As JSONGenerator
JSONGenerator.Initialize(Main.mJSON)
Dim j As HttpJob
j.Initialize("", Me)
j.PostString("https://abouttimetcp.flyingneurons.io:40640",JSONGenerator.ToString & "\n")
B4A Question Post Request to SMS Server - TILogistic (first post)    Jun 23, 2021   (3 reactions) test:
See:
https://www.bulksms.com/developer/json/v1/#tag/Message
Library StringUtils SU.EncodeBase64
CALL:
Dim Username As String = "XXXXXX"
Dim Password As String = "XXXXXX"
Dim JSONGenerator As JSONGenerator
JSONGenerator.Initialize(CreateMap("to": "+27745428191", "body": "He B4A Question save list data - TILogistic (first post)    May 13, 2021   (3 reactions) It is not better to convert the data to Json and send it in the HttpJob request Dim JSONGenerator As JSONGenerator JSONGenerator.Initialize2(list2) Dim Data As String = JSONGenerator.ToPrettyString(2) B4J Question How to use httpJob to get rest Api Token - EnriqueGonzalez (first post)    Nov 08, 2022   (1 reaction) hi Imbault! it seems that the api acceptsjson, if that is so then try
Dim m As Map
m.Initialize
m.Put("xml",$"<?xml version="1.0" encoding="UTF-8" standalone="yes"?>"$)
Dim json As JSONGenerator
json.Initialize(m)
Dim j As HttpJob
j.Initialize("",Me)
j.Pos B4J Question connect to remote database using an API (SOLVED) - Alexander Stolte (first post)    Jul 18, 2020   (1 reaction) jServer. JSonGenerator and write the json string to the response. it is easier than you think to write an API with B4J. Private JSONGenerator As JSONGenerator JSONGenerator.Initialize(CreateMap("id":1)) resp.Write(JSONGenerator.ToString) Page: 1   2   3   4   5   6   7   Powered by ColBERT |