json

  1. 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...
  2. 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...
  3. 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...
  4. atulindore

    Share My Creation CryptoStream - live and streaming rates for bitcoin and Cryptocurrecies

    Hi Friends 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: https://play.google.com/store/apps/details?id=com.cryptostream.atulk
  5. G

    Android Question I would like to show a information from a string in format json

    quiero mostrar la informacion que obtengo de un web servis en formato json , para que el usuario pueda seleccionar un campo de ese resultado, Qué Etiqueta puedo usar?,como convertir esa cadena de caracteres que estan en formato json a otro tipo de dato mas manipulable.
  6. A

    Android Question Get item in string

    Hello, Can someone please send an example of how to get item from string with items? (I am using json with OkHttpUtils2) The string setting is : Dim name As List = root.Get("name") For Each colname As String In name Next (how to get for example item number 3 that equals to...
  7. A

    Android Question [solved] Json file password

    Hello, I tried to use OkHttpUtils2 with json, the file adress have a key/password to get to the data. I used j.password = but The Log result is: "ResponseError. Reason: Unauthorized, Response: {"message":"Need to provide a secret-key to READ private bins","success":false}" Sub...
  8. 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 \".
  9. 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 =...
  10. 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.b4x.com:51042/json/index.html la cual permite...
  11. 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...
  12. 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...
  13. 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"...
  14. 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 =...
  15. 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...
  16. 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...
  17. 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...
  18. 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...
  19. 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...
  20. 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...
Top