Questions tagged as 'json'

1
answer

Foreach or is within an Anynimous Type C #

I am putting together a return of an Api in JSON , and the return I am in AnynimousType I believe that is how it is called, in it I name the variables as they will for Json, I needed to make a foreach to return the parcels, of a form o...
asked by 01.12.2018 / 06:29
2
answers

How to fix the Requests encoding in Python?

I'm studying Requests in Python and I'm trying to get the data from the zip code: link p> I can get it, but when it comes to showing them, since I live in São Paulo because of the encoding I get: S\u00e3o Paulo Reading the request...
asked by 17.04.2017 / 02:15
4
answers

POST API Rest JSON

I have a form in HTML that should send data to a server in JSON format. How do I format this input and submit data to an API Rest the data in JSON in the way I described below? As I see it, I need to do a POST, the difficulty is...
asked by 17.10.2017 / 17:34
2
answers

Reading JSON result with PHP

I have the following JSON result and I need to handle it with PHP. JSON: { "name": "abc", "count": 6, "frequency": "Manual Crawl", "version": 3, "newdata": true, "lastrunstatus": "success", "thisversionstatus": "success",...
asked by 10.07.2015 / 16:00
1
answer

Convert Json to a Long type

I have a Json object coming from the localStorage and I need it to be converted to a Long type, in the case entidadeId idEntidade = localStorage.getItem("idEntidade"); var entidadeId = JSON.parse(idEntidade);     
asked by 13.10.2017 / 21:41
1
answer

How to get the elements of a json?

I have a return of a request in the following format: In there are the types of cards json has returned. I want to get each type without manually typing their names. Currently I can get it by doing this: response.paymentMethods...
asked by 03.04.2018 / 22:33
2
answers

Pass an array of objects via AJAX per POST and read the properties of objects in PHP

I'm having some problems solving this situation. I'm trying to pass my array of objects via AJAX to another page in PHP and read the properties that are inside each object within that array. For you to try to understand better I will post the co...
asked by 02.04.2017 / 02:07
1
answer

Get Object in JSON

How can I get only the "name":"josimara" property in this code ajax , I'm new to this area, thank you for the help. <script src="http://www.habbid.com.br/assets/js/jquery-1.9.1.js"type="text/javascript"></script> &l...
asked by 03.10.2017 / 20:03
1
answer

Application closing while consuming json

What should I do to fix this crash? My code: public class Tela1 extends AppCompatActivity { TextView textView2; String[] objetos = new String[0]; String url1 = "https://economia.awesomeapi.com.br/json/USD-BRL/1"; JSONObject...
asked by 01.01.2017 / 13:50
2
answers

Get JSON result with php

The code is complete I believe but I do not know how to work with json , I just need to get the result of the other days that I can only get from the code today: $chave = 'fdhfju35'; // Obtenha sua chave de API gratuitamente em http://hg...
asked by 21.11.2016 / 13:30