Questions tagged as 'json'

2
answers

Undefined when attempting to use the valid JSON received

I have a boring problem of finding the error, I'm already looking for hours here. I'm getting a JSON from PHP using JQuery, I can see it as you can see below the result of the answer "date": { "sucesso": 1, "dados": { "BTC_YAMR...
asked by 23.02.2018 / 03:12
1
answer

Error accessing JSON with Ajax jquery

I'm getting a JSON that I created with PHP as described below, but when I try to access the properties of that JSON it always returns me undefined . I made these test files there to demonstrate how I'm doing. If I give a console....
asked by 22.02.2018 / 21:04
2
answers

Upload with json + Modal + Javascript

Good evening, I need a help, I'm uploading multiple files in a modal, but the php return does not occur as expected. CallingMODAL:$('button.btnaddimg').on('click',function(e){e.preventDefault();varid=document.getElementById('idclienteimg').valu...
asked by 12.03.2018 / 02:52
2
answers

How to transform multiple JSON into a single valid JSON with json_encode in PHP

Hello! I have a script that at the end of each while loop prints a json echo json_encode($retorno); The result when running the script is (example bringing multiple results) { "IdClienteLS": 1695, "Nome": "Magia das Flores",...
asked by 04.03.2018 / 21:51
1
answer

Return data from .lua file in PHP in array form

I need to access some data stored in a .lua file in PHP. This is the content of the meu_arquivo.lua file: tbl = { [22004] = { unidentifiedDisplayName = "Sapato", unidentifiedResourceName = "»÷µé", u...
asked by 02.03.2018 / 21:56
1
answer

Get child object - firebase

I have a firebase database in this structure: { "-L4Wqs3YbAlUgTWElF4Q" : { "receita" : { "-L6m_C46-Mj1py6RtF8H" : { "imagem" : "default", "ingrediente" : [ "ovo", "leite" ], "nome" : "um nome", "prep...
asked by 05.03.2018 / 23:48
2
answers

Upload csv file with ajax, json, php and mysql

I'm trying to make a import of a file csv to MySQL dealing with errors with JSon but I can not, even with a basic test I can not return the message, it always falls in else if . This is the form: &l...
asked by 06.02.2018 / 17:18
1
answer

Doubt return API Json Android

I recently read a lot about getting data through an API on Android, but I can not seem to get what's being returned in Json from a specific API shown below. { "Sumario": { "Termo": "teste", "Tipo": "teste", "Editora...
asked by 06.02.2018 / 17:38
1
answer

Organize Json file

I wanted a way to organize this Json file: { "ajuda": { "name":"Ajuda", "category": "Sistema", "desc":"Mostra todos os comandos disponiveis.", "usage":"ajuda [grupo ou comando]" }, "ping": {...
asked by 22.01.2018 / 01:31
1
answer

Passing json parameters with php

I'm trying to make an integration with Paseguro that asks you to send some data to a URL with Header = 'Accept:application/vnd.pagseguro.com.br.v3+json;charset=ISO-8859-1', 'Content-Type: application/json;charset=ISO-8859-1'...
asked by 23.01.2018 / 15:37