Questions tagged as 'json'

2
answers

Parse data from an object inside a JSON in Angular2

I followed this tutorial to create a table with a JSON in Angular 2 . link My question is, if I had a JSON of this type: {"visitas": [{ "_id": "586b5d313406cd103c3f38d5", "fecha":"01-ene-2017", "paciente": { "_...
asked by 31.01.2017 / 22:36
0
answers

Capture Entity serialized in JSON with symfony form

I am using fos_rest in symfony 2.8. I have an Angular client that sends a serialized entity in JSON in order to persist it in the database. It has three related entities. Ex: {"auto": {"usuario":{"id":1}, "modelo":{"id":1},...
asked by 14.12.2016 / 21:40
1
answer

JSON string from

Dear colleagues: I am working with a json string with the following format: [{"id":"1","nombrelonlat":"A;28.00;-15.00"}, {"id":"","nombrelonlat":";28.20;-15.50"}, {"id":"2", "nombrelonlat":"b;28.01;-15.01"#"id":"3", "nombre":"c;28.05;-15....
asked by 26.12.2016 / 15:10
1
answer

Problems with retrofit and picasso

I have a problem with my retrofit and picasso, when calling the server that is a json I need to show a list of images, but when I open the app I get a repeated image but if I close and open the app I load another but repeated, try to verify with...
asked by 13.12.2016 / 04:43
0
answers

Retrofit, does not show the list of cities when looking in the dialog of the floating action button

Well, that, I have implemented an application with 3 tabs and I want to update all the tabs when clicking when it shows the cities in the dialogue, the fact is that it does not even show me the cities, I do not know what I'm doing wrong. My a...
asked by 08.12.2016 / 17:48
1
answer

Ignore field when converting to JSON in a REST service in JAVA EE

I have the following code: @Path("alumnos") public class AlumnosController { @GET @Produces("application/json") public List<Alumno> getAlumnos() { List<Alumno> alumnos = new ArrayList<Alumno>(); alumnos.add(new Alumn...
asked by 14.11.2016 / 20:27
1
answer

Problem when performing a query JSONArrayRequest. I always receive null

I have this code and I am trying to get a JSON from a PHP script with Android Studio and MySQL, and then use a url of an image obtained from the database and fill in a ReciclerView with some lists. I always get a NullPointerException exception f...
asked by 28.02.2017 / 16:15
2
answers

How do I convert a json to a two-dimensional array by javascript or jquery?

I have a problem with a json, because I have to transform it into a two-dimensional array or with this format [[0,0], [0,0]], at the moment only for normal arrays, and I also use it know how to do with this format, which in essence is the same [...
asked by 03.11.2016 / 15:25
0
answers

How to format a text stored in JSON? [closed]

when the text stored in JSON is very large and when I call it to show it in the app (to the user) it appears all running without text format, like being able to do it to respect paragraphs and maybe some words in bold, Do I make myself clear? La...
asked by 01.10.2016 / 04:31
0
answers

JSON with the eval () function of javascript [closed]

Can I read JSON with the eval () function of javascript?     
asked by 23.11.2016 / 14:57