Tagged Questions
0
votes
3answers
35 views
Arrays nested in array JSON - how to access properties
Struggling with some JSON I've been provided. It's in this format:
[
[
{
"items": [
{
"id": "xxxxxxx",
"name": "xxxxxxxxxx",
...
0
votes
0answers
54 views
Removing first array for json output
I have got a simple function which outputs an array which i can then just "json_encode" This works fine. But now i need to do this multiple times.
while($row = mysql_fetch_assoc($resultsol)) {
...
0
votes
1answer
29 views
HighCharts setting categories and series using JSON
I'm trying to get my High chart to work from data that I get from Ajax (JSON) but i think i must be missing something. I've tried looping through and putting what i need into arrays so that i can put ...
-3
votes
1answer
46 views
Probleam using classes , array , json and php
Hi, this is my first time trying to create some code in PHP and it took me a long time but I'm able to convert data to xml. Now I need create a JSON object and it's not going well. The biggest problem ...
0
votes
2answers
53 views
Cherry-picking one JSON object to create multiple arrays
I have a JSON array with thirty objects (the last 30 days including today). Each object has these properties:
{
"date": "2013-05-20",
"notCachedRequestsDevelopment": "115482",
...
0
votes
0answers
12 views
android how to implement Search functionality giving search string to server and display results via json
i've got a mean problem...
i'm trying to implement a search functionality into my android app.
we're receiving a programm list in a list view an the user can start the search through clicking on a ...
0
votes
1answer
37 views
If I have a JSON data, how do I return an array of JSON file?
I have a JSON file formated like this:
[
{
id: 2011136021,
tree_level: 3,
main_category_id: 105,
sub_nodes: [
128001,
128002,
128003,
2011136046
],
}
]
...
1
vote
0answers
42 views
Why can you not return an object to Javascript's Array.map() and it map it properly?
I have two functions below (they are taken out of a larger script so assume everything is defined etc. self.sentenceObjs works great. It returns an object exactly like it's supposed to do. ...
0
votes
1answer
54 views
indexOF method in a Javascript array
I have the following list constructed:
var names_Array= [];
var names_List= new WinJS.Binding.List(names_Array);
names_List.push({ name: "Joe Dowling", image: "image/Joe Dowling.png", ClientID: ...
0
votes
3answers
64 views
New line characters gives parse error while converting an array to JSON
I am trying to convert an array to valid JSON object. One of the values in the array contains new line characters and HTML tags. I used the following php function to convert an object.
echo ...
0
votes
1answer
24 views
NSARRAY JSON empty
i'm trying to download some data from a mysql server, i would like to use JSON to parse the result of a query.
This is the PHP
<?php
class Prenotazione {
public $ID_prenotazione;
public ...
0
votes
1answer
34 views
How to access the response from statusesUserTimeline (twitter) using Zend ?
I'm new to PHP so it might be stupid question but I tried to figure it myself with no success.
I am trying to get some information from Twitter using Zend Framework, this is the response:
...
0
votes
1answer
21 views
JSON call data array that has whitespaces in its name
I'm calling a json string that has white spaces in the its identifiers which is causing my code to break. I'd like to call the first name and last name
var names = jQuery.parseJSON('[{"F ...
0
votes
2answers
33 views
Concatenate string into file_put_contents
I want to write both a string and an array to a file using file_put_contents in php. To write the array, I'm able to do:
file_put_contents('filename.js', json_encode(array(
'status' => ...
0
votes
0answers
23 views
Mixing 2 cURL requests
This first snippet retrieves data from an API, json_decode(s) it and prints some data I choose:
<?php
$data=array('players'=>array(),'opt'=>array());
// List of players
...