Hi everyone I was wondering if it possibile to cast a Map object to a Custom type object that has the same fields.
At the moment I'm doing with a function that manually get all the fields from the map.
Thanks in advance
How can I sort the following JSON based on the 'amount' in ascending order? I need a function that takes the JSON, sorts it, and returns the sorted JSON as output...
I am working on an app that needs to be able to manipulate JSON strings. They are stored in a compact format then prettified for display and editing.
The main problem I have found is that if the json is invalid, it can't be prettified with the existing JSON lib. I found this project on github...
⚡️ Unleash the API Power: Magic API for Seamless B4X Integration
🌟 Greetings, B4X enthusiasts! Today, I'm thrilled to unveil the magic behind our latest creation—the Magic API. Elevate your B4X applications with streamlined API integration, simplifying CRUD operations effortlessly. From...
I try to parse this XML file and generate JSON. Why is the data order of the generated JSON file different from that of the original XML? Instead, it is sorted the same. Why can't we generate JSON files in the same order as the original data.
I am not good at communicating with others in...
Hello,
I'm trying to get a JSON data to a dropdown B4Xcombobox, but not succeeding.
I also tried to change the maptoarray via a sub found on the forum.
Created the json parser via the online tool.
JSON is simple like...
Are you up for another challenge? Try this tutorial. Maybe you like the end result.
This is how it will look like:
You will find some interesting links to other study material in this tutorial.
And of course here is the link: B4A-JSON
Happy coding!
Paul.
Hi there
Yesterday I got meself thinking, what if I could ensure SSR (Server Side Rendering) be possible in the BVAD3 apps.?
Server-side rendering (SSR) is an application’s ability to convert HTML files on the server into a fully rendered HTML page for the client. The web browser submits a...
Hi All
Having a bit of a mare with decoding a json dataset
Dim json As JSONParser
Dim text As String '= j.GetString
text = $"[{ "errors": "OK,203",
"LegOtherID": "100321888",
"ExtraTypeID": "19233"...
Hi everyone, I hope you can help me. I don't know how to fix!
I created an admob account, I connected Firebase. App added (currently on Playstore).
downloaded the google-services.json file and saved in the app folder
created advertising bunner. Later tried to insert id admob test. modified...
I need to save a json file to read after. but when it save de file, it lose two essential character. This is the part of the file that i send:
"key": "value<br><font size = \"1\">value</font>",
And this is what it goes to the file:
"key": "value<br><font size = "1">value</font>",
It loses...
Hello
I've been using a B4J program to send FCM notifications to Android clients.
We're now adding IOS support. Problem is, a notification formatted for android does not show on IOS ( lacks the additional json info) and viceversa (android does not like the additional fields)
For now, we...
Dear all, I have successfully done following queries in DB Browser for SQLite:
INSERT INTO tblUser (name, phone) values("oz", json('{"cell":"+491765", "home":"+498973"}'));
SELECT json_set(tblUser.phone, '$.cell', '123') FROM tblUser;
SELECT tblUser.name From tblUser WHERE...
I'm getting some JSON from a website, and they apparently don't properly terminate their strings. It's causing this error:
Looks like the spaces in the string values are causing issues.
How can I properly parse that string into JSON, since I have no control over what I receive from the API?
Building a Weather App
One of my recent projects required me to build a weather app that would work with an API of my choice. This was my first introduction to working with a weather API, so I knew there was going to be a steep learning curve, but I was excited about the chance to finally get...
Hey
I faced such a problem, I will be glad to any advice or help, perhaps someone has already encountered such a problem. I store my data encoded as strings (locally and on a remote server, like base64). Now, when I receive a JSON file, I get an error because the string that I need to decode has...
Hi everyone, I've an app that need to download an huge dataset.
We are talking about making a http request the return a json of 8000 rows, that need to be stored in a local SQL DB in the device.
Now.. the problem is the following: downloading and storing all the rows in the DB takes a while...
I have a TextField on a form.
Running the project and right-clicking the TextField (with text in it), by default, produces the following context menu with some text selected.
I'd like to append/add to the existing menu, so that it don't lose the existing menu items and their functionality.
How...
Hello,
Created a JSON using DBUtils.ExecuteJSON by passing required parameters and then converted it into a string using toString method. Works fine. Verified that it's a valid JSON.
Now I want to parse this JSON and extract individual values. This generated JSON starts with root and I...