json

  1. Songwut K.

    Android Example B4A and PHP REST

    Thanks @Erel for free version that I plan to buy but donate instead. I'll share my B4A knowledge in Thailand, your great product must popular, later. PHP is well known for web developer, it cheap resource and easy to learn in Thailand. Backend system easy manage by PHP & MySQL but till now...
  2. Peter Simpson

    Android Tutorial 💡 A simple XUI app transfer from B4A to B4J in under 11 minutes

    Hello all, Here is a quick video to show how simple it can be to transfer your B4A projects to B4J when using XUI. It's been on my mind all days now, so I thought I would give it a go and also record my efforts. This is my first ever attempt at doing anything cross platform like this with XUI...
  3. Peter Simpson

    😀 Coming soon - Lazy Loading examples for new and existing B4X members

    Hello everyone, I've noticed that there appears to be more questions regarding long lists of data and matching previously designed layouts. Even thought you can easily use xCustomListView in conjunction with Lazy Loading to accomplish the required results, some B4X developers can find it...
  4. S

    B4A Class CSBuilder, store in JSON format

    Hello, This class can parse JSON to generate CSBuilder. Create a json string, save it in a file, add it to assets folder, and display it with this class. All the CSBuilder capabilities are supported. Comments in clsCSBuilderParser.bas and samples files explains the JSON structure. spsp
  5. C

    Android Question JSON Post, quotes in wrong place

    Hi everyone; I'm having a rough time posting a particular JSON object. The JSONParser works perfectly, but when the resulting map is posted, the quotes for the array type and JSON type end up in the wrong place, breaking the object. Sub btnSend_Click...
  6. carlos7000

    Android Question Simple code to receive json string

    Hi. I am looking for an old code, because the program must run on a device with android 5, that allows me to simply receive a json text. For this reason I use the Http library instead of the okhttputils2. I tried using the OkhttpUtils2 library, but a handshake ssl error appears. that despite...
  7. KMatle

    B4J Tutorial [B4x] Exchange Data via OkHttpUtils and php (or other platforms) via lists, maps, arrays, etc.

    I made 7 examples how to exchange data between B4x apps and php. I use the POSTSTRING method as it is simple, secure (get-methods will be logged with the data autmatically on the server, post-methods not), strings can be formatted very easy (JSON) and en-/decrypted (not included but see my other...
  8. ALBRECHT

    Android Question Image URL and image base64

    Hello, I am working with 2 types of image sources: - IMG downloaded from an URL and - images returned into a json with base64 format. 1/ But i do not know how to put the image b64 in an image view, 2/ in the meantime and until today, I do like this: I first copy the image datas from base64...
  9. Sai Main Seng Kham

    Android Question How To Use API Key

    hi, i am new in using API key and i have never done before so, how can i use this api To show like this https://ibb.co/MBB5rJv I got this API key and image from other developer . The question is How to display like that image with the API key Above ? thanks u
  10. ALBRECHT

    Android Question [solved] JSON encoding

    Hello, Please, i have a Json provided from an external DB Table like that : [{"Id":"1","Libelle":"CONFORT ET BIEN-ÊTRE","PictureId":"2428"}, {"Id":"14","Libelle":"AIDES...
  11. Mashiane

    B4J Question How to Unflatten List to a JSON Tree?

    Hi there Can anyone please help with a snippet to unflatten data into a json stree? For example, this is my list of records... Dim arr As List arr.Initialize arr.Add(CreateMap("id":1 ,"parentid" : 0)) arr.Add(CreateMap("id":4 ,"parentid" : 2)) arr.Add(CreateMap("id":3 ,"parentid" : 1))...
  12. trejocode

    Spanish [RESUELTO] PARSEAR JSON desde WS

    Hola, estoy aprendiendo acerca de B4A con OkHTTPUtilis2, tengo un Web Service que me devuelve el siguiente Objeto: {"users":[{"id_usuario":1,"usuario":"Sistemas","password":"12345678"},{"id_usuario":2,"usuario":"Desarrollo","password":"12345678"}]} Lo que quiero es parsearlo para...
  13. Mashiane

    B4J Question [BANano]: How to embed & read json file? / rather use BANanoSQL to load it?

    Hi there I'm not sure if this is possible or not even with other web stuff however I have something in mind. I have json file that I need my app to read. Actually Im thinking of converting an sqlite db to json that my app will use in read only mode. I guess I can use sql.js without the need...
  14. C

    Android Question Encoding Text when Manually Building JSON

    I'm manually building in code, some JSON files, but have a hit a problem where I need to ensure that characters like " ' [ & etc are encoded, as if I don't, the recipient can't parse the resulting file. Is there a function somewhere that will allow me to convert a text string to a JSON friendly...
  15. atulindore

    Share My Creation CryptoStream - live and streaming rates for bitcoin and Cryptocurrecies

    Hi Friends Pls check my first google play store app for bitcoin and cryptocurrency streaming rates. I have used exchanges rest APIs and JSON parser to create this app. Download Live Streaming Crypto App at Google Play: https://play.google.com/store/apps/details?id=com.cryptostream.atulk
  16. G

    Android Question I would like to show a information from a string in format json

    quiero mostrar la informacion que obtengo de un web servis en formato json , para que el usuario pueda seleccionar un campo de ese resultado, Qué Etiqueta puedo usar?,como convertir esa cadena de caracteres que estan en formato json a otro tipo de dato mas manipulable.
  17. A

    Android Question Get item in string

    Hello, Can someone please send an example of how to get item from string with items? (I am using json with OkHttpUtils2) The string setting is : Dim name As List = root.Get("name") For Each colname As String In name Next (how to get for example item number 3 that equals to...
  18. A

    Android Question [solved] Json file password

    Hello, I tried to use OkHttpUtils2 with json, the file adress have a key/password to get to the data. I used j.password = but The Log result is: "ResponseError. Reason: Unauthorized, Response: {"message":"Need to provide a secret-key to READ private bins","success":false}" Sub...
  19. santook

    B4R Question How to support escape characters

    I want to use Json, and I need to add "in the string. How to use escape characters, just like C/C++ with \".
  20. K

    Android Question http getstring in autocomplete setitems

    I got http.getstring == [{"place_return":",'','a place','b place','c place'"}] like this and i have to insert it into autocomplete.setitem() I tried like this :: Dim p As JSONParser p.Initialize(Job.GetString) Dim list1 As List list1 =...
Top