Questions tagged as 'json'

1
answer

Java: Convert point-delimited strings to nested JSON

I have a lot of attributes coming as dot-delimited strings like "company.id", "company.address.number", "user.name", "isAtive", and I need to create a nested JSON with their respective values. These attributes and values are in a HashMap. Not...
asked by 12.07.2018 / 19:40
1
answer

Bring JSON result into div with jquery

I have the following JSON generated by the system: var skuJson = { "productId": 17234, "name": "Sabonete AnaSuil Porta Joias Rose Bulgarie", "salesChannel": "1", "available": true, "displayMode": "especificacao", "dimensions": [...
asked by 09.05.2014 / 23:29
1
answer

Error uploading a NodeJS application in Heroku

While running the eating: git push heroku master LOG: -----> Node.js app detected parse error: Unfinished string ! Unable to parse package.json -----> Build failed We're sorry this build is failing! You can troubleshoot c...
asked by 04.05.2017 / 18:28
1
answer

Get Response from an API that returns error 500

Next, I have an API that returns error 500 every time it breaks the business rule and returns a status and message. We know it's not a good practice to return status 500 under these circumstances, but is there any way I can get the JSON that it...
asked by 22.05.2017 / 15:20
2
answers

Extract arrays and JSON objects returned with jQuery

I'm making a request in a Web Service using jQuery this way: var dados = jQuery( this ).serialize(); jQuery.ajax({ type: "POST", url: "http://meusite.com/test", data: dados, success: function( data ) { // que...
asked by 20.01.2017 / 06:21
1
answer

How to call the previous select id

I have 2 selects, one division and the other group. When the division is selected it has to bring in the second only the groups that are part of that division. In the url variable that takes json I called python according to my view, but instead...
asked by 13.09.2017 / 16:17
2
answers

Validate max_size in an input type="file" with JS

Well, I'm trying to validate max_size in js, but as I do not understand much, I was able to only validate accepted formats (jpg, png, etc ...) <input type="file" name="photo" id="photo" onchange="checkfile(this);" /> function checkfil...
asked by 24.03.2017 / 03:10
2
answers

Returning linked data

With the help of Milrak Pereira Pessoa and Wéllingthon M. de Souza, I edited my code ... I have a product code and it has 5 types and 5 descriptions. I'm trying to bring to the user the types and descriptions within the blank table. However, the...
asked by 20.10.2017 / 21:47
1
answer

JSON with value - App List Null

I'm creating an App, where it will display some information from an external database using a JSON file so that I can display this information in the App. But when I run the code, the list in my app returns null and void. I would like to know wh...
asked by 03.12.2016 / 20:34
1
answer

How to remove part of a JSON file

I need to remove parts of a JSON, but I do not know how I can do it. I'm converting the same to CSV, and when I convert the structure it gets all weird Here is the print explaining better, which is marked in black, I need to remove it and...
asked by 05.10.2017 / 19:20