Questions tagged as 'json'

3
answers

JSON.parse error

I have a JSON like this: {"id":"53530","name":"Bifurcadores <ul class=\'menu\' style=\'display:none\' id=\'ul53530\'> <li onclick=\'pinchar(,\"Todo\")\'> <a href=\'#\'>LANZAR PRUEBAS TOTAL <\/a><\/li>", "data...
asked by 11.10.2016 / 12:45
4
answers

JSON encode with SQL and PHP query

Good morning, everyone. This question I have already seen in several issues but I do not understand very well what is the problem of why it does not enter the results in an array. I know that the query returns results. I leave code: functio...
asked by 11.10.2016 / 17:36
1
answer

Save JavaScript object in a JSON file, grunt task

I'm pretty new to this tool, so I'm trying to use everything I can in tasks. At the moment I'm using a plugin to read documents in Google Drive , the problem is not reading, it's the writing of the jsons. It is necessary to change the way the J...
asked by 10.08.2016 / 22:01
1
answer

Validate in Java that an incoming json matches the Class model

I need to validate a json that comes from the request body, some fields are required but if the json does not have them, they are returned as null: @Document(collection = "menus") public class Module { /** The module name as unique identi...
asked by 05.07.2016 / 20:20
1
answer

Error when parsing JSON

I have a problem parsing a JSON, reusing source code I had: protected Boolean doInBackground(final String...args) { String datos = leeJSon(this.ruta); Log.d("1", datos); try { JSONObject jsonObject = new JSONObject(datos);...
asked by 16.06.2016 / 17:25
1
answer

Save json in an angular model1 (ionic1)

I have a query in angular. I need to access the data of a json [ { "gift": [ { "description": "Recibe un pichel de te gratis!!", "name": "Te para Todos", "cod": "Te01", "poll": 6, "id": 5...
asked by 17.08.2016 / 19:41
1
answer

Error generating "Source: File" php

I have a problem when generating a player in php with JwPlayer, the problem is that the player takes the link of my page plus the link where the video is hosted link To generate the video, the page where it is hosted uses JSON: $id = $_GE...
asked by 13.06.2016 / 10:11
1
answer

Retrofit 2 Android Deserializer JSON GSON

I just started with Retrofit 2 for Android, I opted for the good reviews I had, although I would have stayed with Volley since I see it much easier. The fact is that the issue of deserializar the JSON with GSON is giving me quite the can....
asked by 21.08.2016 / 11:30
1
answer

variables of an array with the same name

I have 2 arrays in Java with different Array names (sender and recipient), but the variables within the arrays are the same (account_number, product_id, external_id, simulation, recipient_sms_notification, sender_sms_notification), when declarin...
asked by 11.05.2016 / 17:52
1
answer

Error showing an image with JSON on Android

How about, I'm trying to show images in a ImageView from a database mysql on Android. It shows me the following: org.json.JSONException: Value <html><body><script of type java.lang.String cannot be converted to JSONO...
asked by 10.05.2016 / 19:05