Questions tagged as 'json'

1
answer

I can not display the array data

When I type the command console.log (response) it displays all information in the browser console, but for some detail, I am not able to display the data inside my div that is in the html snippet below. Can anyone point out to me what I'm lettin...
asked by 17.02.2017 / 21:05
1
answer

Real-time Notifications with javascript [closed]

I'm building a Java application that should show on-screen notifications in real time. A teacher requests a reservation; Reservation data is stored in a json object (or in a request table); At the same time, a notification is displayed o...
asked by 09.02.2017 / 18:59
2
answers

How to read a JSON using ONLY JavaScript? [closed]

I want to read and display in a console.log the information that is inside my .JSON, but without the use of jquery or other frameworks. Basic code.     
asked by 10.02.2017 / 21:17
1
answer

Create dynamic inputs from a json object

I have a form that the user can add several languages that knows how to speak, this form consists of a dropdown and a button to add the respective language. At the moment I click the add button it adds me new object to an array, as I show in the...
asked by 10.02.2017 / 16:44
1
answer

Databinding for JSON.NET objects: how to implement?

My application handles a lot of HTTP requests that return JSON data. I use the JSON.NET library to manipulate them. Here is a simulated and fairly brief example of the information (there are redundancies in the original data, which I can not pos...
asked by 08.01.2017 / 12:13
3
answers

Problem with JS / JQuery / JSON / AJAX

I'm having some problems with JSON in my application and wanted to see if you guys can help me, please. The situation is as follows: I have a method in my controller that looks for some items: @RequestMapping(value = "/buscaTodosCardapio...
asked by 23.01.2017 / 17:56
1
answer

How to use an ajax return in any part of the script?

I have a Json that is returned via ajax, I wanted to be able to manipulate this return throughout my script, out of the scope of Ajax, so I do not have to do a function that does everything within that scope. That way it's working, but it does n...
asked by 05.02.2017 / 02:07
2
answers

How to get a value from a json from a string.string

Having a JSON of type: {"HOME":{"INTRODUCAO":"midias/video1.mp4"}} How to get the value midia/video1.mp4 from the string var key = "HOME.INTRODUCAO"; I've tried: var key = "HOME.INTRODUCAO"; $.getJSON([CAMINHO DO JS...
asked by 10.12.2016 / 23:13
1
answer

Set Value in an @ html.DropDownList

In a form for Address Book, I wanted to do the following. the guy types the zip, then fetches the zip, and returns the data to fill in the EditorFor. So good, it's working. City and States are in a separate table, and are displayed by DropDownLi...
asked by 18.11.2016 / 14:33
1
answer

I can not capture data from JSON!

Well, I have json here, and I used CURL to get it! Then I gave json_decode , but, I tried everything to get the data, but nothing works. What could be happening? I tried to pick up only the items part of JSON , an...
asked by 29.10.2016 / 05:01