Questions tagged as 'json'

2
answers

Java generate JSON from a string

I am a beginner in programming and have never worked with json I am doing a work on and graphs and to make the graphical representation of the graph I need to generate a json with the data of the graph, I made a method that returns a string with...
asked by 19.11.2015 / 17:29
1
answer

How to ignore an error using Json.NET without damaging what has already been read

Is there any way to continue "deserializing" an object using Json.NET , even when a property is corrupted and without damaging the which has already been "read"?     
asked by 26.01.2016 / 02:58
1
answer

JSON return for PHP with Ajax

I'm trying to pass a JSON (result of a Google Place API) with Ajax to PHP. I think my problem is in PHP when it comes to manipulating the data, it follows a part of the code: AJAX: //GRAVA TODO O RETORNO NO BANCO......
asked by 06.02.2016 / 13:11
1
answer

How to convert date at select time and return via Json

In my form I am using Bootstrap-Datepicker so that the user can enter the desired date at the time of registration, it works correctly, but at the moment of making a change I am trying to bring the date in the format 99/99/9999 wit...
asked by 24.11.2015 / 12:38
1
answer

Load table from view with JSON object

I have the following code in my controller : public JsonResult List(string nome){ IList<ClienteDto> clientes = string.IsNullOrEmpty(nome) ? _repositoryCliente.Get() : _repositoryCliente.GetByName(nome); var mo...
asked by 26.11.2015 / 17:56
1
answer

How to get the url for this Json (java android)

{ "success":[ { "url":"http:\/\/stream.vagalume.fm\/stream" } ], "format":"mp3", "remaining":0 } how to get url, format and remaining separately     
asked by 27.11.2015 / 18:57
2
answers

Json + webview, basic doubt!

Good morning! I have a WebView, where I get a JSON and want to mount the WebView according to the data received. In this part of the code html += "<h1>" + nmTitle + "</h1>"; I put the variable that receives the JSON content...
asked by 05.11.2015 / 14:46
1
answer

Lazarus accents in JSON

I'm having a problem with accentuation in Lazarus, when I get a JSON coming from a URL it returns characters as "" instead of "", does anyone know what I can do? Follow the code procedure TForm1.Button1Click(Sender: TObject); Var S : String;...
asked by 17.12.2015 / 19:12
1
answer

How to serialize a Json object? Delphi XE7

I need to generate an Object that represents a JSON file and Delphi is generating me the following ERROR: 'Internal: Invalid pair name {"directory": "d: \ Folder \ Doc"}: expected type or ref' In the line of code: objetoJson := UnMar.U...
asked by 25.09.2015 / 15:56
1
answer

How to do a POST using the HttpUrlConnection class of Android?

I need to send a JSON generated in the Android application to a web application. Using the HttpUrlConnection class I made the following encoding: private void sendPost(String url, String postParams) { try { URL...
asked by 24.08.2015 / 21:31