Questions tagged as 'json'

1
answer

Python returns "dead" when trying to read json 240mb [closed]

The problem occurs on a final CentOS server version 6.8. The same script with another smaller file works perfectly. Test done in Ubuntu 16.04 the process occurs successfully. Any solution? Follow the code below. gist code     
asked by 20.04.2017 / 15:16
2
answers

Get data returned via json with PHP

Well, I tried to capture the URL data in php anyway: link But I can not, I tried cUrl, I tried to save the page returned, anyway, everything I tried was unsuccessful! Always returns false ... $url = "https://api.cartolafc.globo.com/time/slug...
asked by 02.05.2017 / 14:32
1
answer

How to add an object to an array inside another object

I have the following function that creates an object: function createDebit(name, value, paymentDate){ var debit = {"type": name,"value": value,"PaymentDate": paymentDate}; return debit; } This object that it returns I will add. on a...
asked by 01.05.2017 / 21:19
2
answers

Send an array of objects in an ng-click?

I have the following doubt in this code. <table class="table table-bordered table-hover"> <thead> <tr class="bg-info table-responsive table-bordered table-striped"> <th>Cpf</th>...
asked by 30.04.2017 / 21:58
1
answer

Deserialize JSON with Restsharp and with JavaScriptSerializer

I'm having difficulty deserializing a JSON. I'm getting the following content: "response":{ "account":{ "name":"Evandro Teste", "owners":[], "creationDate":"2017-07-07T07:18PDT", "city":"Guarulhos",...
asked by 11.07.2017 / 17:00
1
answer

Foreach with this type of JSON (PHP)

I'm trying to display the values of a JSON with PHP most unsuccessfully. Used Code: JSON: { "event_name": "offline_message", "widget_id": "sEcXk3TXEw", "visitor": { "name": "ARTULITO BARBOSA DE SOUSA", "email": "...
asked by 24.05.2017 / 15:50
1
answer

How to access property with # in a JSON file with JQuery?

Hello, I'm using Last.fm's api and I'm having trouble accessing the #text that's inside the image array. Data Link - > JSON I try: console.log(values.track[index].image[index].#text); But it does not work. How can I solve?     
asked by 24.03.2017 / 17:00
1
answer

How to access a specific field of a JSON object using JAVA

I'm using Java to get Twitter information and the ElasticSearch REST client . As a test I made an info PUT in JSON and then used performRequest to get a specific element. //create a json to PUT at the ES Map<String, String>...
asked by 08.08.2017 / 21:20
1
answer

Read exits json in Php

How do I read this output? curl http://127.0.0.1:8775/scan/3730f9794bffb6aa /log { "log": [ { "message": "testing connection to the t...
asked by 13.03.2017 / 15:40
1
answer

JSON does not convert special character?

I have a ArrayList and when I convert it to a Json using Gson the special characters do not match the serialization. Obs My bank and project is in utf8 encoding. I'm serializing ArrayList like this: C...
asked by 21.03.2017 / 22:37