Questions tagged as 'json'

2
answers

How can I iterate a JSONArray of objects with a for each in JAVA?

I have the following JSONArray in java and I want to go through it with a foreach , I do not know if it is possible, thanks. [{clave:valor,clave:valor,clave:valor}, {clave:valor,clave:valor,clave:valor}, {clave:valor,clave:valor,clave:...
asked by 30.09.2016 / 21:20
2
answers

AngularJS request header field Content-Type is not allowed by Access-Control-Allow-Headers

Starting to use Angular JS and I need to make a post request to a server. I am making the request in the following way: var Informacion= JSON.parse('{"username":"--","password":"--"}') $http.post('http://--:8080/taller-bd-11/usuarios/login',...
asked by 21.12.2015 / 07:35
2
answers

Go through JSON sub node in vueJs

"bloques": [ { "id": 1, "banner": "Banner_Doble_Megas_terminales2.jpg", "titulo": "Blindaje", "activo": 1, "contenidos": [ { "id": 1, "subseccion": 0, "icon": "fa fa-copy",...
asked by 11.12.2018 / 23:22
1
answer

response from nodejs does not match the result of the ajax request using formidable

Hi, I'm uploading a file to nodejs with the formidable module and everything is fine, the file is saved in the directory I have indicated and such, but the response I receive on the page tells me that has not been found no file to upload but...
asked by 17.12.2018 / 11:45
1
answer

Create JSON with 4 Entities on android (with GSON)

I need to create an array with data that I have in 4 SQLite tables, these 4 tables have their 4 entities with their Getter and Setter methods, the question is to create a JSON using the GSON libraries would have to create an entity with the fiel...
asked by 25.11.2018 / 07:19
1
answer

Variable in object path

I'm doing a personal project where I try to recover JavaScript Objects through URL, a kind of RESTful service so I need to convert the routes of my URL in JSON routes to recover the object in question, I do this from the following way:    Tur...
asked by 27.12.2018 / 21:27
1
answer

Notice: Trying to get property of non-object

I'm having the following error: Notice: Trying to get property 'idDia' of non-object in C:\wamp64\www\backend-trabajo-final\profesionales\select-profesionales-para-posible-servicio.php on line 26 (So, with each of the properties I try...
asked by 24.09.2018 / 15:38
1
answer

How to traverse JSON with AJAX

I have the following JSON : {"success":"true","data":{"usuarios":{"iduser":114,"cuenta":"arieldiaz"}}} and my ajax is this: success: function(response){ if (response.success) { $.each(response.data.usuarios, function( key,...
asked by 01.08.2018 / 19:39
1
answer

Qt Parse of a Json (object within an array)

I have the next json { "Perfiles": [{ "Nombre":"Default", "E/S": { "EntradaHr": 6.45, "SalidaHr": 12.15 } }] } And the following code #include <QJsonDocument> #include <...
asked by 04.05.2018 / 02:50
3
answers

laravel 5.5 I need to include a variable inside a json type array

I need to include $ token within the $ user array where I save my query, I'm using the laravel 5.5 framework protected function respondWithToken($token,$documento){ $user = User::select('id','nombre','email')->where('documento', $docum...
asked by 09.05.2018 / 21:39