Questions tagged as 'json'

0
answers

My app aborts while trying to consume rest

It has a rest service that my android app needs to consume. For this I have to send a parameter in json format. It happens that it aborts the moment it consumes the Service . This is the code I have to consume the Service : public async Task...
asked by 11.01.2018 / 19:43
1
answer

Problems generating OAuth access token with HttpURLConnection

I'm trying to make a request for a webservice that uses OAuth to generate an access token. But even though the request returns the Http 200 code, json appears only as {"errors": {"internal": ["500"]}} , below the code: NOTE: I did the same p...
asked by 16.01.2018 / 19:28
1
answer

return JSON with special characters in URL

I'm having a problem with the return of a JSON, I've done a query to fetch some images from the bank, some URLs users have registered the images with special characters like - > (ç ã) The texts containing these types of characters are retur...
asked by 16.07.2016 / 20:36
1
answer

Cordova error while executing Ajax call

I have a Cordova 7.0.1 application that makes a request to a method from an Asp.Net MVC Web API 4.6 site. When the call is made on the device, cordova run andoid , the method execution returns error. IfyourunthebrowserdirectcallthroughanHTMLpa...
asked by 22.01.2018 / 22:22
1
answer

Quotation marks coming out in the wrong JSON format!

I'm serializing a dictionary to JSON in Razor Pages, however the quotation marks (% with%), are leaving as " _Layout.cshtml (UTF-8) ... <body> ... <script type="application/ld+json"> @JsonConvert.Seriali...
asked by 10.01.2018 / 17:04
1
answer

How to interact with bank data with Javascript

I was looking to put together a chart with HTML Canvas using Javascript as well. The required data is in the MySQL database. However, how can I interact and access this data from the Javascript bank, since it is not safe to use that language for...
asked by 09.01.2018 / 17:45
1
answer

How to make a JSON with an array of objects

I have a form that is sent via POST as JSON. But I have an object array called classes [] in JavaScript. The object contains disciple, ch and course. That is, the array that is dynamically generated is something like: , "ch": "2"}]...
asked by 24.01.2018 / 15:10
0
answers

Save JSON data using Laravel

When saving data to the MySQL database with the JSON column using Laravel . It inserts the data this way: "{\"publish\":1,\"start_date\":\"2018-01-06\",\"start_time\":\"00:00\",\"end_date\":\"2018-01-09\",\"end_time\":\"00:00\"}" How d...
asked by 04.01.2018 / 19:12
2
answers

C # Convert DataSet in JSON

I need to convert a DataSet into a JSON so I can retrieve it in View. The query here is just an example, because it is a large query. I have seen in some places things like: string json = JsonConvert.SerializeObject(table, Formatting.Indented)...
asked by 08.01.2018 / 17:44
1
answer

Receiving json from a web server

I'm working with firebase, and am fetching the data from the server with HttpWebRequest, I was able to retrieve this data as follows;    {"- L1OD7LjENM8ZHSpS7NE": {"Age": "18   years "," Name ":" vitor "," Telephone ":" 11   970705570 "}," -...
asked by 30.12.2017 / 20:02