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...
If i pass a string to my library it encodes some characters bad:
This function saves a JSON file for library internal management, but inside some characters are changed like this...
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...
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
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...
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...
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...
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...
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.
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.
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...
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...
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...
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
I got this API key and image from other developer .
The question is
How to display like that image with the API key Above ?
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.Add(CreateMap("id":1 ,"parentid" : 0))
arr.Add(CreateMap("id":4 ,"parentid" : 2))
arr.Add(CreateMap("id":3 ,"parentid" : 1))...
Hola, estoy aprendiendo acerca de B4A con OkHTTPUtilis2, tengo un Web Service que me devuelve el siguiente Objeto:
Lo que quiero es parsearlo para...
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...
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...
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: