Questions tagged as 'json'

2
answers

How to insert new object into json file

The json file follows: [{"Id":0,"Nome":"","Endereco":""}] Follow the class: public class JsonResult { public int Id { get; set; } public string Nome { get; set; } public string Endereco { get; set; } } Follow the code below...
asked by 15.05.2018 / 21:42
1
answer

How to join two tables in a JSON

I have two tables: Companies id: integer nome: string Images id: intger idEmpresa: integer url: string I do: select * from empresas where id = 1 select * from imagens where idempresa = 1 and it generates a...
asked by 01.02.2018 / 21:45
1
answer

Get data from a JSON array and add it to a list in Java WEB

I have a list in JSON: {"_status":"sucesso","_dados":{"situacao":"PROCESSADO","mensagem":"Consulta realizada com sucesso","processados":0,"titulos":[],"titulosNaoConciliados":[{"Ocorrencias":[],"CodigosOcorrencias":[],"CodigoMovimento":"06","...
asked by 04.07.2018 / 20:30
1
answer

$ () Ajax event does not work

I have a problem with the $().click() event of Ajax. I'm trying to send an HTML table to convert to JSON and so send it to PHP. But when I click the button to pick up the event, nothing happens. Even an error occurs on the console. The...
asked by 04.07.2018 / 15:17
2
answers

PHP returns NULL when information has accents

When I want to display the data returned by a JSON, it returns me NULL . But when the database information is without accents, it returns me normally: <?php include_once 'WSAps_conexao.php'; $cidade =$_POST['cidade']; $sql = $dbcon->q...
asked by 26.11.2017 / 21:41
1
answer

Insert Json into Json

In a client-server structure (in JAVA), I have the following Json structures separately (example): Structure of Students : {"idAluno":1,"nomeAluno":"Teste da Silva","listaDeTurmas":[1,2]} Structure of Classes : {"idTurma":1,"nomeTurma":...
asked by 12.04.2018 / 16:18
1
answer

How to get objects from a Json Array using JsonArray in java?

I'm having a little difficulty getting information from a Json Array, because it's giving the error:    Exception in thread "main" json.org.JSONException: JSONArray initial value should be a string or collection or array. The output of js...
asked by 12.04.2018 / 15:04
1
answer

Serealize a JSON String C #

I want to set up a JSON String, but I can not create the class the way I need it, I can get information up to the first level, but I can not create subkeys. For example I want the string to be { "nome": "Nome", "familia": { "pai"...
asked by 13.03.2018 / 12:49
1
answer

API error Table FIPE

I am using an API to consume data from the FIPE table for a form's fill-in. I can consume the field of Tag and Year , however, the error field. Documentation link: link Follow the code: <!doctype html> <html> <head...
asked by 09.03.2018 / 01:32
2
answers

How to remove an object from an array, if it exists, with json string

I'm trying to create a sort of wish list. By clicking a button / product it populates or deletes, if it already exists. However, I can not delete it, I can only include it. I tried using splice , but it only works with array. The problem is to...
asked by 23.11.2017 / 18:40