Questions tagged as 'json'

1
answer

How to use JSON in Python?

I am using the following code to collect the Urbandictionary site API import requests import json page = requests.get("http://api.urbandictionary.com/v0/define?term=hello") print(page.content) Soon after execution, I get the following resu...
asked by 08.01.2018 / 22:35
1
answer

Error Array to String Conversion

I have an Android application that sends a Json in the form of a string to the server in PHP. I tested with var_dump to verify that the data was being passed correctly and everything is ok. The problem is that when I try to access json and assig...
asked by 29.01.2018 / 18:30
1
answer

Extract information from json php [duplicate]

I'm trying to collect the information contained in "definition", but I'm having trouble accessing it. (This is my first time working with API and PHP) { "tags": [ "hi", "hi", "hey", "hey", "greetin...
asked by 28.12.2017 / 19:15
1
answer

How to do otherwise?

I'm getting this error when I try to load data into the page via Ajax. Is there another way to send Json objects from the servlet to the JSP without using document.write ? error: "A parser-blockingis invoked via document.write."...
asked by 27.01.2018 / 22:33
1
answer

JSON file reading by JavaScript

I need to read a JSON file through JavaScript and assign each item of it to a single variable, as I did in this algorithm: function leitura(){ var arquivo = **Ler arquivo**('json/teste.json'); var conteudo; **Laço de repetição**{...
asked by 26.12.2017 / 12:36
1
answer

Help with AJAX request

I have this function that searches the database for the quantity of products in stock. public function contarProduto() { try { $pdo = Conexao::getInstance(); $sql = "select id_produto as produto, sum(quantidade) as quantida...
asked by 02.01.2018 / 02:41
1
answer

how to handle a json that contains multiple results using python

Hello, I'm doing a python script that takes the name of a movie and returns some data to the user (title, year etc). I'm using api omdbapi, but my question is not with regards to it but how to handle the following json link , when I use the par...
asked by 18.01.2018 / 23:52
1
answer

TypeError: $ (...) .tableToJSON is not a function

Greetings When I click the button in my project the following TypeError error is displayed: $ (...). TableToJSON is not a function, I am using the tableToJSON plugin Code: $('document').ready(function(){ $('#TermVenda').click(function()...
asked by 11.01.2018 / 11:51
1
answer

Posting a JSon object to Webservice via AJAX

I'm trying to send an object in JSon format to my Java Webservice by AJAX, but I was not successful, I already tested wrong formats, which are not JSon's, as "string", and the database reports error properly, and therefore should report that the...
asked by 17.01.2018 / 22:54
1
answer

play login data in the API parameter

In the login I ask the user to put the email and cpf, there I have an api that plays data in a table that I created, then I need to get the parameters cpf and email to put in the api. Ex: http://8080/rest/apiCODCPF=02798477425&EMA...
asked by 14.12.2017 / 16:07