Questions tagged as 'json'

0
answers

Webservice Restfull + Jersey + Tomcat 9 return from Json without content-length

I'm developing a Webservice application with restfull + Jersey and Tomcat 9. In this system I need to return a Json from a class (Product) to an android application and use contentLength (android) to retrieve the file size and use in progress ba...
asked by 03.11.2018 / 12:47
1
answer

Reorder elements of an on-screen search

I have an application in django and need to reorder the elements of the screen when the user decides to sort by date, popularity, etc. I would not like to submit a new search every time the user selects a filter, I believe the best way would...
asked by 31.10.2018 / 16:02
1
answer

How to validate value coming from json from php to ajax

In php I have the following return: $invalido = (object) array( 'invalido' => true ); echo json_encode($invalido); I need to display in success of ajax asked if invalid...
asked by 09.11.2018 / 18:44
1
answer

Task Scheduling [closed]

I would like to know if it is possible to schedule tasks with javascript, that is, I have a javascript script and if it were possible "of course" the 01:00 hour would be executed automatically. I know this in other server languages is possibl...
asked by 30.10.2018 / 21:50
1
answer

Placing in alphabetical order an array of objects [duplicate]

I have an array of objects and I want to put them in alphabetical order but I'm not getting through the javascript, I'll put how the array is structured and the code to call the page var json = [ { "ID":"1", "TÍTULO":"Algum...
asked by 25.10.2018 / 18:42
0
answers

Receive a json as a Java Servlet parameter

I'm developing an API using java servlet , I'd like to know how to get a JSON in the request body as a parameter and write to a database? Example: { "nome": "José da Silva", "email": "[email protected]", "telefone": "(21) 9...
asked by 24.10.2018 / 22:26
1
answer

Transform hexcode "& # x2b;" into "+" in JavaScript

I'm using a payment API that requires the phone numbers entered to be in the E.164 ( +[Código do país][código da cidade][numero de 8~9 dígitos] ) and string (as in the example below). However, when you add the + sign, it is trans...
asked by 30.10.2018 / 18:15
0
answers

How to pass data to View generate a chart with Chart.js

I need to generate a line chart with chart.js. How can I pass data to my View? I'm trying as below, but the graph does not appear. Controller public IActionResult Index() { var qryGlobal = _diagnosticRepository.GetAll()...
asked by 27.10.2018 / 19:59
0
answers

Json response invalid DataTable Server Side

I've been trying for two days to solve a problem I'm having with DataTable related to json's return. I am using the examples available on the DataTable site as well as those available at GitHub . I'm using this code to create json: ser...
asked by 27.10.2018 / 21:46
0
answers

PHP - file_get_contents ('php: // input') is the only way to read request contentType = application / json?

I have the following Jquery Ajax method function postRefreshJson(_action, jsonModel) { $.ajax({ url: _action, method: 'POST', beforeSend: function (xhr) {...
asked by 27.10.2018 / 15:11