json

  1. aeric

    B4J Question [Solved] Posting JSON to Shopee API

    Shopee is an e-commerce platform. The documentation for their Open API is avaialble at https://open.shopee.com/documents?module=63&type=2&id=53 I have developed a B4J Non-UI app but unable to get the expected results. B4J: When I use Postman to post the request, I get the correct result...
  2. rleiman

    Android Question [SOLVED] - Extracting a value from downloaded JSON data

    Greetings, I'm learning how to work with JSON and did a lot of searching and came up with the following coding. It's just a few lines of code but I thought it is at least enough to pull some data out of the downloaded data. I'm sure I messed up with the coding in several places and would like...
  3. Ferdari

    Java Question SOLVED Passing String to lib saves with bad characters

    If i pass a string to my library it encodes some characters bad: mylib.SaveStringToJson("https://play.google.com/store/apps/details?id=com.app") This function saves a JSON file for library internal management, but inside some characters are changed like this...
  4. lnxpy

    Android Question Getting "Bad Request" in posting JSON Data to an Endpoint

    Hey guys, hope you're doing well. I want to create an application to post some JSON data to an endpoint and get a field from the returned response. Whenever I click the button it takes back with the "Bad Request" error and says that two "title" and "script" fields are required. (I've already...
  5. P

    Android Question how to get a specific index of a json list?

    Hi, using the json tree viewer I was able to get values in a for - each loop. How can I access a specific index? I would like to access element 'Instrucciones' of object 2 This is the code for-each Dim parser As JSONParser parser.Initialize(File.ReadString(File.DirAssets...
  6. Muhamad Kamal

    Share My Creation PHP code to send Firebase Notification to both Android mobile app and iOS mobile app

    Hi there! I'm sharing one of my work here so that some of you might refer it. This code is the PHP part from the whole project that I was working on. My project is based on the automated Forex signals that will be sent to Android and iOS mobile app from an indicator built on MT4 MetaQuote...
  7. 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...
  8. 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...
  9. 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...
  10. 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
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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
  16. 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...
  17. 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))...
  18. 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...
  19. Mashiane

    B4J Question [BANano]: [SOLVED] 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...
  20. 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...
Top