Questions tagged as 'json'

1
answer

JSON for PHP + MYSQL

My client sent me this JSON so I can loop and write the data in Mysql. I just can not get it because it's different from what I work on; Someone can give me some hint and what is the difference from one format to another. Error presented i...
asked by 06.06.2018 / 16:58
1
answer

Get json through ajax / javascript

I have a webservice developed in Java that is responsible for returning all the compositions of a particular fabric / piece (textile area). you must first obtain the current drawing and then the remaining ones. So far there is...
asked by 06.06.2018 / 15:57
3
answers

Transform JSONArray into Class Object

I'm getting an API in my application that returns an Array of names, I've created a class to assign each name to 1 instance but I'm having trouble getting this JSONArray and turning it into object, all the methods I've tried do not Did they work...
asked by 18.10.2018 / 14:10
1
answer

Deserializing complex json

I'm new here and would like help you, I need to deserialize a json, to use in a xamarin forms application and am having trouble, how to proceed in C #? follow the json below { "RECORDS": [{ "Codigo": "33338", "Descricao":...
asked by 14.10.2018 / 01:07
0
answers

How to get data from json to php

I have the following webservice script, I connect normally with the external host (code: 200) But in echo ResponseBody nothing appears. How do I show the data? <?php $USER_NAME ="abc"; $PASSWORD = "abc"; $sessionResponse = null; $se...
asked by 18.05.2018 / 20:39
0
answers

Uncaught SyntaxError: Unexpected token

I'm consuming data returned from a JSON Web Service , where I run arrays , to compare values between URLs and < strong> if equal , replace with its name. We have teams, places, categories and modal names, each with its identification code,...
asked by 30.08.2018 / 14:29
1
answer

Pick up the image of a Json

Good morning! I'm new to javascript and I'm trying to put the image of a JSON from the bing site and put it in my body but I'm not getting it returns the following error:    Failed to load access-control-allow-origin:    link :   Cross origin...
asked by 30.08.2018 / 16:36
1
answer

Problem when trying to use values from a JSON - Javascript

I have the following javascript code inside a function called query () that receives the index value of an input: var request = new XMLHttpRequest(); if (!request) { alert('Que pena :( a requisição não pode ser feita'); }else{ re...
asked by 17.03.2018 / 02:55
0
answers

Include and remove elements of a Json with the Gson (Java)

I'm using the Gson library in Java, I have the following structure in a json file: {"idAluno":4, "nomeAluno":"Teste da Silva", "listaDeTurmas":[1,2,4]} Is it possible, with this library, to change the "list ofTurmas" entry to include / remo...
asked by 07.04.2018 / 22:26
1
answer

Web Service Return is a string, how can I query the data?

I'm consuming a Web Service, it follows the JAVA code (JSP): <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <%-- start web service invocation --%><hr/> <% try { com.totvs.framework.ws.execbo....
asked by 15.12.2017 / 12:23