Questions tagged as 'json'

2
answers

Transform into json

I have a string: {name:"Sara", daypart:"day", href:"http://pt.stackoverflow.com/questions/ask", bg:"su", temp:"calor", realfeel:"hot", text:"cloudy"} I'm basically looking for a quick way to turn this into JSON, ie put quotation marks (...
asked by 30.06.2015 / 18:58
3
answers

How to run a C program in Visual Studio Code

I'm trying to run a code (program) in C in Visual Studio Code, but I can not find the necessary settings. I installed the C / C ++ (Microsoft) extension Project structure: .vscode          - c_cpp_properties.json          - tasks....
asked by 25.10.2016 / 14:47
2
answers

Put Json value in the variable

What am I doing wrong? var GETEstado = $(this).val(json[0].GETEstado); alert (GETEstado); Alert is displaying    [object Object] My complete code: $(document).ready(function () { $(".transportadora").click(function () {...
asked by 13.05.2015 / 14:37
1
answer

JSON return in an array in LOOP

I need to store the return of JSON to an array, that is: $.ajax({ type: "POST", dataType: "json", url: "/engine/listarPublicacoes.php",...
asked by 28.11.2014 / 12:35
2
answers

How to use the JSON response?

After a lot of trying I got to this JQUERY AJAX result, but I still can not use the JSON data, it does not work, how should I do it? Help! Thank you The JSON response is at the end jQuery(document).ready(function() { jQuery('#add...
asked by 06.12.2014 / 19:59
1
answer

Error converting String to JSONObject

I'm trying to develop an android application that consumes a Web-Service but whenever I try to run a query in the database it returns me this error:    Error parsing data org.json.JSONException: Value In my LogCat: 02-22 15:37:32.250: I...
asked by 22.02.2015 / 16:51
2
answers

search in json with ajax in specific field

How to search data in a JSON with AJAX? I want to do the search in a JSON field called tag and show another field (title and url) in a div. HTML: <div class="Minimizado top-menu-invisible hidden-mobile hidden-md hidden-sm"> <in...
asked by 28.07.2015 / 16:10
1
answer

Error in JSON with accents

I'm having problems with my JSON , the error is accentuation, does JSON allow? if it allows, how can I do to show, what will get JSON needs it to be normal, with accents and everything .. MY JSON: { "id": "addCTE",...
asked by 12.08.2015 / 20:17
1
answer

Is there a session variable in Json [web service]?

Well, the mini world of my project is as follows:    I'm creating an application, where I will consume a database using the json method, where I validate the logged in user, but when asked to add some other information in the database, how wi...
asked by 04.08.2015 / 16:29
2
answers

Add option to select with jQuery through $ .post callback

I am making a select that will have some users and when selecting a user will send a request $.post to get all records related to the selected user. After returning the related records, the jQuery will return the callback...
asked by 07.10.2014 / 06:03