Questions tagged as 'json'

1
answer

Parse JSON objects with random names

I'm trying to pair objects JSON with GSON I'm used to knowing the names of the objects, I create the classes and I just have to call those classes to use the objects and build custom adapters and finally fill lists or other views easily with...
asked by 31.01.2018 / 21:38
2
answers

Pass a json object from one activity to another

I have the following problem I am trying to bring a list of items that I get from a json , from a activity through a controlador q you request it to a class that has the json . Inside the code that I am attaching what I...
asked by 31.01.2018 / 00:39
1
answer

open page with window.open and send variable

I have a problem, when sending and registering in the bd a sale sends me a confirmation message and that I show on the screen: This code captures the submit and receives the message: $(".frm-ventas").submit(function(event) { event.p...
asked by 14.02.2018 / 17:26
1
answer

Extract result of a function

Good people, I have this function that I use to analyze some texts, the issue is that I need to include the data in an array, I do this within the function using data, which brings this function, but then the variable 'sentiments' is empty, and...
asked by 09.01.2018 / 16:00
1
answer

Consume a Json Web Service with PHP

Good morning how are you, I hope very well, I would like you to help me a bit in a matter of consuming a web service through a URL that should return a result in JSON, something that does not work and also in the result It just throws me weird s...
asked by 06.02.2018 / 15:36
2
answers

Go through an object with Vue2.js

My question is how do I access the parish array ... try the HTML to do: {{@beneficiario.parroquia.parroquia}} y and gives this error:    Error in render: "TypeError: Can not read property 'parish' of undefined" HTML        ...
asked by 19.01.2018 / 21:31
1
answer

How to remove slash inverted in json?

When executing this code: $array =array(); $sqli=mysqli_connect('localhost', 'dbuser', 'pass', 'db'); $query = mysqli_query($sqli,"SELECT * FROM usuarios"); while ($fila = $query->fetch_assoc()) { $res=array('nombre'...
asked by 14.12.2017 / 02:00
1
answer

Send Json by Volley

I need to send something similar to this: "nuevo": [ { "idusuario": "1", "idcuenta": "2", "calidades": [ { "id": "1", "peso": "100", "cajas": "5" }, ] } ] Do I need to...
asked by 14.06.2018 / 01:51
1
answer

Get JSON of web service in JAVA

I am starting in the programming of online databases and its communication with a local application such as a JAVA or Android desktop application. My question is this: Having a PHP service configured in a URL that returns all the data in t...
asked by 25.10.2017 / 14:33
1
answer

Transform txt to JSON

I have a list of cities in a txt file with their respective city name and id, I want to transform it to JSON with a format: [{"NOMBRE_CIUDAD":"CIUDAD_NOMBRE","ID_CIUDAD":"CIUDAD_ID"}]. What I currently have in the txt is: "CIUDAD_NOMBRE"...
asked by 12.12.2017 / 18:08