json

  1. M

    Android Question [B4X] Cast Map to Custom Type

    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
  2. Luciano Veneziano

    Android Question JWT for B4A

    Hello everyone. Is there for B4A a library to decode JWT like in image?
  3. M

    Android Question Sort json

    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...
  4. stevel05

    B4J Library JSON Formatter and validator

    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...
  5. fernando1987

    B4A Library ✨ Magic API Library: Transform Your MySQL Database into a REST API in Just 5 Minutes! 🚀

    ⚡️ 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...
  6. X

    B4J Question Why are the generated JSON sorted with Json librarys

    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...
  7. S

    Android Question How to fill B4Xcombobox from JSON data (JSON to ARRAY) ?

    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...
  8. P

    B4A-JSON app tutorial using B4A, JSON, MySQL and PHP.

    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.
  9. Mashiane

    [BANanoVuetifyAD3] Server Side Rendering (Almost)

    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...
  10. D

    Android Question Problem decoding JSON with array

    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"...
  11. C

    Android Question does not load the banner!

    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...
  12. A

    B4J Question losing character when using File.WriteString

    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...
  13. Pxs

    B4J Question Send FCM group notification to both Android and IOS

    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...
  14. W

    Android Question sqlite "no such function" runtime error

    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...
  15. cklester

    B4J Question Unavoidable Spaces In JSON from API Upsetting the JSONParser

    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?
  16. Abdull Cadre

    Share My Creation [Free] Weather App

    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...
  17. D

    Android Question JSON parser

    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...
  18. M

    Android Question "Heavy work" and freezing - multithread?

    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...
  19. M

    B4J Question B4J Context Menu questions

    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...
  20. S

    Android Question Parsing JSON string created with DBUtils.ExecuteJSON

    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...
Top