Questions tagged as 'json'

1
answer

HTTP formats to send data to the server

I use headers: {'Content-Type': 'application/x-www-form-urlencoded'} What is the correct way to send the json data so that the WS reads it correctly? data: { lat: '-33.4415275', lng: '-70.6517743' } I have this code, I send them by...
asked by 06.09.2016 / 23:56
1
answer

Send and get array of arrays js in servlet

I want to send an array of arrays to a java servlet via ajax, receive that data and go through it. Ex: var datos=[[1,2,3],[4,5,6],[7,8,9]]; $.ajax({ url: servlet, dataType: 'json', type: 'post', data: { lista: datos }, succes...
asked by 24.06.2016 / 18:22
0
answers

Problem with the response in an ASP.NET Web API

I have an ASP.NET Web API that is working correctly on other servers, I'm just being presented with a detail on a particular server and the problem has to do with the dates. I have a class to perform the conversion of the dates and it is: p...
asked by 14.06.2018 / 20:32
1
answer

RestFul JSON Service

I'm doing a restful service, it returns data like json but but inside an xml and I only want json . Annex image of how the result looks. and my code. I want to remove the highlighted in yellow. namespace WcfServiceWOM { [ServiceContrac...
asked by 17.05.2018 / 22:53
6
answers

JSON object arrives empty to my method

I created the following function to send an object of a service through JSON but when the object arrives it has all the empty variables: var cpDate = new Object(); cpDate = { OllPass: '', NewPass: '', ConfPass: '' }; $(documen...
asked by 09.03.2017 / 13:39
1
answer

How to read fixes within JSON objects with retrofit 2 in android? error: "java.net.ConnectException: Failed to connect to"

I am trying to consume a api of a localhost , once created generate the following JSON {"Users":[ {"id":1, "username":"pepe123", "fname":"pepe", "lname":"jose", "dispositivo"...
asked by 31.10.2018 / 20:53
3
answers

Return JSon value in C #

Good morning / afternoon / night SOes, It's been several days since I've been trying to make a statement and I can not hit the key. The topic is the following : I have to add to a Contract depending on which one, a letter in front: "A"...
asked by 09.08.2018 / 16:24
1
answer

How do I modify the values that php brings in json format from angular

<!DOCTYPE html> <html lang="es" ng-app="practica"> <head> <meta charset="UTF-8"> <script type="text/javascript" src="angular.min.js"></script> <title>Document</title> </head> &...
asked by 25.03.2016 / 21:04
2
answers

Parser Json volley request

You see, I have a Json that works correctly for me being this: { "codCompeticion": "284", "nomCompeticion": "2ª.Cadete I \"Copa Coca Cola\" Valencia", "jornadas": [ { "jornada": "1", "idClubLocal": "020121...
asked by 10.04.2016 / 22:50
2
answers

Get JSON data that returns a URL through Java

I'm trying to get some specific data from an http request, this request returns data in json, here's an example: { "Head" : { "RequestArguments" : { "DataCollection" : "", "Scope" : "System" },...
asked by 20.06.2016 / 08:30