json

  1. 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 \".
  2. 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 =...
  3. carlos7000

    Spanish Parseador Json.

    Hola a todos. ¿Alguien sabe como desarrollar un Parser en B4a (parseador/analizador gramatical) para Json en B4a? A pesar de todos mis esfuerzos, json siempre me da muchos quebraderos de cabeza. Pero encontré hace un tiempo esta página http://www.basic4ppc.com:51042/json/index.html la cual...
  4. PatrikCavina

    Italian Consigli su stringhe JSON

    Ciao a tutti, Volevo avere un parere da voi riguardo alla gestione delle stringhe JSON. Se all'interno di un progetto dovessi implementare una comunicazione tra la mia applicazione e un web service mediante le stringhe JSON, quale sarebbe il vostro approccio? Ovvero: creereste una serie di...
  5. LucaMs

    Android Question JSON & Maps

    JSON generator / parser seems to convert maps' keys to string: Dim mapSource As Map mapSource.Initialize Dim i As Int For i = 1 To 3 mapSource.Put(i,i) Next Dim jg As JSONGenerator jg.Initialize(mapSource) Dim sJSON As String = jg.ToString Dim...
  6. A

    Android Question Problem with Api rest, Json, Put.

    Hello, I have a problem I need to send a json with the put method to an api. The json is: { "person" : { "User" : "Rodrigo", "Pass" : "xx123" }, "answers" : [ { "NmbItem" : "Item 1", "DscItem" : "Descripción del item 1", "QtyItem"...
  7. itgirl

    Android Question Json prase error [java.lang.RuntimeException: JSON Array expected.] SOLVED

    Hello guys i have a very simple Json {"_status":"ERROR","_message":"Invalid authentication information"} as you can see its pretty plain I've tried parsing using Dim parser As JSONParser parser.Initialize(JsonString) Dim root As Map = parser.NextObject Dim _message As String =...
  8. nwhitfield

    iOS Question Change in JSON handling of null value in v5?

    Has there been a tweak in how JSON - particularly null values - are handled? In the API that my iOS project talks to, a field may be blank, or not present; in the returned data from the server, it's usually present, but may have the value set to null, (not quoted) in the JSON, rather than an...
  9. MarkusR

    B4J Question [solved] problem with array data in json

    maybe is someone more firm in json parsing i have this json and need iterate this array(list) "List_Packages" and the data there "Pos_A_mm" and below "X","Y","Z" my attempt Dim J As JSONParser J.Initialize(JSON) Dim Map1 As Map Map1 = J.NextObject Dim...
  10. MarkusR

    Android Question [Solved] Post JSON to MS Web API

    [solved] Hello, i have a client app at phone (b4a) and a web server with iis and a vs studio 2017 web api project. i will post data as json to server (i used okhttputils2) and the server should deserialize the data into a object/class. but i facing the problem that nothing is deserialized and...
  11. KMatle

    Android Tutorial [B4x]Data exchange (B4x, php, servers, .net and others)

    After some years I have developed several apps to communicate with other apps, servers and platforms. My goal was to have ONE standard solution without additional propriatary solutions which work only on platform a but not on b. So I've ended up with lists and maps converted from/to JSON...
  12. raphipps2002

    Android Question Mysql android connection

    I can write in vb.net and b4a and have a vb.net app which creates a Mysql hosted online. I want to be able to read that Mysql and get records from vb but NOT from b4a. I want to read the mysql from my ANDROID app I have asked an indian developers to write a class so i can attach to my Android...
  13. rleiman

    Android Question json file with geo-coordinates

    Hi Everyone, Do you know of a web site that has a json file I can download that contains the following? For now I'm looking to get the data for cities in the US. I will add other countries later if the web resource has multiple countries. City Name or postcode Lat latitude in degrees Lon...
  14. R

    Android Question extract data from json and update label text in widget

    Hello, I would be great-full and happy if someone could help me out over here. I have searched a lot in the forums and tried multiple pieces of code but unfortunately I have issues. I want to make a widget. I get the data from a web server in Json format. I am able to get it successfully and...
Top