Questions tagged as 'json'

0
answers

String conversion error in JSONArray - Android Volley Method

My application receives a JSONString via web service from a C # API, as listed below: [{ "LimiteCredito": 123.00, "PessoasFuncionarioId": 16, "Id": 12, "Nome": "Cliente PF A", "DataEdicao": "\/Date(1485019536610-0200)\/", "UsuarioAlteracaoId":...
asked by 21.02.2017 / 15:04
1
answer

Use select data in input

I have a code that selects an option from the data that comes from the database. This part of the code is ok, it selects and brings. The problem is that when I select this option , I need to populate 4 fields input automatically,...
asked by 03.12.2018 / 13:36
1
answer

React.js Error trying to access nested data from a Json via state of the component

I'm starting with React.js and I'm having trouble accessing nested data in a JSON. I am using whatwg-fetch to make the request and it is working, but I can not access the nested data of JSON, eg: data.title it displays on the sc...
asked by 16.01.2017 / 16:56
1
answer

Receive and Send JSON C #

In a local application "WindowsForm" in C #, I need to send and receive data via JSON to a PHP page, is there any predefined function for this?     
asked by 21.06.2016 / 20:44
1
answer

Android json utf8

Good afternoon! I have a class that imports json data, but some characters are not recognized, I have to apply utf8 on them but I am not getting below the function that imports the data. public void carregarCategorias() { JsonArrayRequest...
asked by 08.07.2016 / 21:06
2
answers

ASP - Printing JSON without last comma and with double quotation marks

I need to query the database, and it returns a JSON. I tried using JSON for ASP from Google, but it gave some errors, so I decided to do it manually: <!--#include file="conexao.asp"--> <% medico = replace(request("medico"),"'","")...
asked by 01.06.2016 / 16:11
1
answer

Pass a List as a parameter in web services RESTFul Java

Could someone explain me how to get a List as a parameter in a RESTFul Java webservices? I've tried in several places, but I still can not understand. Thanks in advance ! The code below is an example and how I did it in my actual code. In the re...
asked by 28.11.2016 / 14:42
0
answers

Problems generating JSON with JAVA

I'm having trouble generating this json { "receita": [{ "specialtys": [{ "date": "27/01/2016 00:00:00", "itemSpecialtys": [{ "specialtyId": 1, "specialtyName": "Tabelionato de...
asked by 29.01.2016 / 19:47
0
answers

Ajax returning HTML along with JSON

The code I did was working normally but suddenly, it behaved differently. I've made all possible debugs, take a look $( function(){ // When submit it $('.frms').not('#form-newsletter').on('submit', function(){ e.preventDefault(...
asked by 29.01.2016 / 15:21
1
answer

Put local Json in external Json $ http Angular / Ionic

I want to pull this Json data from the Service via an external Json via $ http. I found several examples plus they are not returning result for me. .service('ProdutosService', function($q) { return { produtos: [ { "nomeProd": "nomeprod...
asked by 22.02.2016 / 12:24