Questions tagged as 'json'

0
answers

Place local .txt file within a local page

Eae, people. I want to tell you first that I do not handle a lot of java and these types of code, so I already hope I do not have answers, but come on. Next, what I need to do, for a project, is to use the text that is inside a ".txt" file and p...
asked by 09.05.2017 / 04:23
1
answer

Conflict with the generation of JSON

I have this layout of a JSON file, which I should follow: { "data": [ { "id": 1, "title": "Clínica Fassina", "location": "Clínicos Gerais", "latitude": 51.541599, "longi...
asked by 28.04.2017 / 03:12
1
answer

How to read a JSON Object Array with Xamarin Android Newtonsoft.Json

I'm working on an application that gets a JSON response and inserts some fields from it into an textfield android , here is the code: using System; using Android.App; using Android.Widget; using Android.OS; using RestSharp; using Newto...
asked by 08.05.2017 / 15:06
1
answer

How to render a json with the json_api adapter using Rails Serializer?

Oops, I would like to render a json using the json_api ( link ) pattern using Rails Serializer ( link ). In my controler I'm rendering something similar to this: render json: {'user': {name: 'Peter' }} However, when I render this JSON, i...
asked by 11.05.2017 / 22:45
1
answer

Mysql - Searching using like does not correctly return unicode characters

I have a text editor in my application that writes html formatting to a longtext field. It turns out that when I use the like to return the data it can not find because of the unicode characters generated. I have this value in the bank (Past...
asked by 24.04.2017 / 05:06
2
answers

API call does not work

I have the following code: // Jquery Script <script src="https://code.jquery.com/jquery-3.2.1.min.js"integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script> // JS Script $.a...
asked by 20.04.2017 / 22:21
1
answer

What is wrong with requesting this script?

At some point I need to request a json script from the server, but I'm making some changes and I'm getting errors that supposedly should not happen. The example below works perfectly well: $(".script_episodios").html($("<script />", {...
asked by 19.04.2017 / 14:44
2
answers

Find data in Json and display time in time and move to javascrtipt

I need to get the data that is in json format example: {"latitude": "-3,3462, -60,6790"} I need to display the results time in type every 5 seconds and move to the javascript without giving refresh on the page.    javascript var...
asked by 13.04.2017 / 16:14
0
answers

How to retrieve the array from a post sent on Android to a php?

Android code: String caminho = "http://10.0.2.2/system/pages/login"; HttpURLConnection conn = null; BufferedReader reader = null; try{ URL urlConection = new URL(caminho);...
asked by 07.04.2017 / 02:06
2
answers

How to get names of objects contained in JSON with Java?

I needed to extract the name of the objects contained in a JSON file, for example, to show that the JSON file below has the objects batteryCharge, luminousFlux, id, temperature. But do this search without specifying the name of the object to be...
asked by 29.03.2017 / 17:23