Questions tagged as 'json'

0
answers

What causes the invalid JSON error? [closed]

I have already done what was said in this post: json_encode - Invalid JSON and has not yet been resolved, so I'm asking. I'm using the jquery datatables server side. I did the server side activation with the default repository in the datata...
asked by 03.07.2017 / 17:00
1
answer

Select to return JSON [closed]

Hello! I have the following code in PHP: login.php <?php $msg; if (isset($_POST['login']) && isset($_POST['senha'])) { $login = str_replace(" ", "", $_POST['login']); $senha = str_replace(" ", "", $_POST[...
asked by 14.06.2017 / 14:24
0
answers

Gson Does Not Convert List In Json

Every time I try to pull all the data from a database table and convert the result to json, using Gson, it gives error. @GET @Path("todos") public String todos() { Gson g = new Gson(); UsuarioRepository usuarioRepository = new UsuarioR...
asked by 29.03.2017 / 16:01
0
answers

When running a service: the following error occurs. Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value [closed]

FrameWork 4.0 Code block that generates error var token = Configuracao.Config.TokenAgrometrika; if (Configuracao.Config.ValidateTokenAgrometrika > DateTime.Now) return token; var autenticacao = new Autenticacao() { Chave =...
asked by 29.03.2017 / 22:18
2
answers

Filter with JQuery, Json and Input

I have a list of inputs with type checkbox, with values that are loaded from a JSON file. I would like to know how to make a filter, so that by clicking on a particular checkbox, the products (which are loaded from another JSON file) are filtere...
asked by 19.04.2017 / 08:10
2
answers

How to read json in angular1?

I have the following json {"message": "457896","additionalData":{"google.message_id":"0:149534266","coldstart":false,"collapse_key":"com.ionicframework.lucasteste693113","foreground":true}} How can I give an alert to show all information?...
asked by 21.05.2017 / 08:13
2
answers

How do I step to screen a serialized object? [duplicate]

I'm trying to convert an object containing a relationship and serializing affine, from sending it to View by Ajax . I have two related classes public class Eventos : IEntidade<EventosAuditoria> { [Key] public int ID { get...
asked by 31.05.2017 / 07:14
1
answer

How to make a combobox insert text depending on the choice?

I'm using the help of a post here from OS . The difference is that instead of having several options to choose from in the other combobox, I only have one option in the database, which should already be entered in the input, when selecting t...
asked by 14.06.2017 / 17:26
3
answers

How can I simplify access to the values of interest of a Javascript JSON?

Context: I am developing an application that consumes several APIs. The JSONs returned by these APIs have their own structure, which is often not the most intuitive for the programmer to exploit. / p> Example: Suppose I am using an externa...
asked by 21.06.2017 / 02:52
1
answer

JSON conversions

I am a beginner in C # and ASP.NET, and I have doubts about JSON and dictionaries I have a serialized dictionary that has been stored in the database with: var json = new System.Web.Script.Serialization.JavaScriptSerializer() .Serialize(fil...
asked by 05.09.2016 / 16:19