Questions tagged as 'json'

1
answer

Restart Session on asp.net and json

I hope you can help me with this topic, I am working on a project with asp.net c #, the problem is that I need to click on a label to execute a Json and it ends the session. I explain to you what I did. I have a VSesion class that has seve...
asked by 23.11.2016 / 13:56
1
answer

Ignore the null parameter in a Linq query

Hi, I have a Json in a controller that filters my view, the issue is that sometimes receives some of the parameters in Null and does not return records as I could do to ignore me if the parameter enters as null? This is the code: public Jso...
asked by 08.11.2016 / 02:26
1
answer

JSONArray eliminate duplication-

Given a JSONArray with several JSONObects inside with the following structure: [ {"Id_temp":"1","temperatura":"20","Insertado_temp":"2016-08-16 12:30:29"}, {"Id_press":"1","presion":"34","Insertado_press":"2016-08-16 16:18:36"...
asked by 08.09.2016 / 21:07
1
answer

LinkedHashSet JSONArray Android

This is the first time that I have considered using LinkedHashSet in my Android code and I am not sure if it can be used and how to use it. I have a class (Class_1) where it is extracted from a JSONObject, using the loopj library for the conn...
asked by 02.09.2016 / 14:13
1
answer

deserealize array json and vb.net

Ajax sends an array containing values that the user selects from a checkbox set in this way $("#btnEnviarTelcel").click(function () { var conjuntoFacturas=[]; $("#form1 input[type=checkbox]").each(function (i) {...
asked by 02.07.2016 / 00:34
1
answer

How to send a json to a view with ASP .NET MVC

I have a driver that sends me information to download a file, currently sent json that way public JsonResult GetXML(DownloadModel model) { JavaScriptSerializer serializer = new JavaScriptSerializer(); Dictionary<string, byte[...
asked by 20.08.2016 / 02:01
1
answer

I want to validate with ajax and json in Django, a field if it already exists before submitting?

This is the url: url(r'validar/celda', SGregorio_views.validarcelda, name='validarcelda'), This is the view to validate: def validarcelda(request): error = '' success = False if request.method == 'POST': celda = reques...
asked by 04.10.2016 / 17:54
2
answers

Share a json data using only a $ scope

Hello StackOverFlow members. This is my code. var app = angular.module('app', []); app.controller("ctrl", ['$scope', '$http', function ($scope, $http) { var promise = $http.get("url1") .then(function (response) { co...
asked by 20.06.2016 / 04:54
1
answer

Java structure in the @ResponseBody custom

I'm doing a mapping from the database with MyBatis in Java. This is the way I am doing it and everything is working very well: final static String GET_CONFIGURATION = "select c.codigo, c.simbolo, c.fecha, c.moneda" + " from pps.cue...
asked by 17.03.2016 / 18:27
1
answer

Radio button in item and SQlite

I am trying to restate a previous question that is very confusing. In the first place, taking into account that in the local database there is a series of data that have been previously inserted, I generate a query and I display the result of...
asked by 23.02.2016 / 16:20