Questions tagged as 'json'

3
answers

Identify checkbox by clicking

I am generating a structure dynamically, which I obtain from a json. It has the function that when clicking on the user's name will show another card in which I have 3 checkbox. The problem I have is that by getting the id and value of each c...
asked by 03.08.2018 / 20:07
1
answer

How to read Json from a Java file with JSON Simple library?

I have the following code that throws me an error at runtime and I do not know where the problem is: THE ERROR:    Exception reading configuration file java.lang.ClassCastException: org.json.simple.JSONObject can not be   cast to org.json....
asked by 16.07.2018 / 22:35
1
answer

sort json data in javascript

I want to sort the data of a JSON that I obtain from an API, to group the Post by user, that is, userId = 1 to obtain all its post, the information that it gives me is the publications made by the users with id, title, its body and the userID, I...
asked by 18.08.2018 / 04:58
1
answer

how to do for JSON only replace data in a column with PHP?

good day The problem that I have is that in my datatable I want it to show certain data with a style TO A COLUMN IN SPECIFIC, for example with $ for prices, or the dates with its format, etc. only that when doing this code, it only replaces what...
asked by 16.08.2018 / 20:05
2
answers

Upload one or more files to server received in a json

I receive a data json, which may contain one or several attachments, all of them will receive the file in base64. I give you an example: { "id": 1, "data": { "nombre": "Nombre", "file1": "Mhuc2dvCg==", "file2": "Yhj4dysYn==", "...
asked by 26.06.2018 / 17:51
1
answer

I do not receive JSON data

I have a problem receiving JSON data from a form connected to a database with fields ( id , nombre , numero ). The problem arises when I try to edit a table value and save it and it should be updated through XHR. Could so...
asked by 30.05.2018 / 13:36
3
answers

delete duplicate elements javascript fix with vue js

I have the following data in json that is stored in my data vue js proveedoresSeleccionados: [{id: 1, texto: "ORSIS S.A.C", check: false }, {id: 2, texto: "ABS S.A.C",check: false }, {id: 2,...
asked by 23.05.2018 / 03:43
1
answer

Postgres saves json data with characters \ "

When you save the json in a jsonb column in Postgres, save it in this format "{friend: [{\" name \ ": \" paolo \ ", \" value \ ": \" warrior \ "}, {\" name \ ": \" (label) \ ", \ "value \": \ "\"}]} " I am sending this to you from ruby on r...
asked by 17.05.2018 / 17:53
1
answer

Read PHP Json data brought by ajax to Js

I send a variable by means of ajax to a php that consults me a unique record according to the id sent in mentioned ajax, I must bring all the data of that record, here the Js function actualizar_cuenta() { var selector = document.getElementB...
asked by 04.04.2018 / 02:08
1
answer

Slim - How to return a json in a single array (I create double array)

I have a problem when returning the results I want in JSON. I make a query to the database and when I rescue that answer I keep it in an array and so on up to three times, that is, I want it to return a JSON of three rows. My problem is that I c...
asked by 31.03.2018 / 00:35