json_decode is a PHP function that converts a UTF-8 JSON encoded string into a PHP value.

learn more… | top users | synonyms

0
votes
0answers
3 views

Get user's latest tweet user_timeline.json getting invalid json?

Am trying to get users latest tweet using Oauth user timeline.json, with curl am getting following json as output. Array( [headers] => Array ( [cache_control] => no-cache, ...
0
votes
2answers
23 views

how to loop through a Json responce

I have web page which get Json responce like this { 'hotel_1page':[ { 'id':'10', 'name':'fsf', 'telephone':'233333' }, { 'id':'11', ...
0
votes
1answer
26 views

Unable to parse knockout JSON in PHP $_get

Here is my JavaScript code var student = student || {}; student.viewModel = function () { var self = this; self.courseCode = ko.observable(""); ...
0
votes
4answers
45 views

PHP & JSON Parsing

I have read a few Q&As on here and additional articles, but cannot get this script to display the relevant values from the JSON return (which are long and lat from this Google Maps call). ...
0
votes
1answer
22 views

Trying to grab a json file to cache it locally

<?php $json_url = 'https://api.feedbin.me/v2/entries.json'; $username = 'username'; // authentication $password = 'password'; // authentication $ch = curl_init( $json_url ); $options = array( ...
0
votes
3answers
19 views

Limiting the number of JSON objects to process [closed]

<?php // JSON URL which should be requested $json_url = 'https://api.feedbin.me/v2/entries.json'; $username = 'username'; // authentication $password = 'password'; // authentication // ...
1
vote
2answers
20 views

issue with json decode value stored in mysql

I have the following value stored in mysql : a:3:{i:0;s:2:"35";i:1;s:2:"33";i:2;s:2:"50";} when I use $value= 'a:3:{i:0;s:2:"35";i:1;s:2:"33";i:2;s:2:"50";}' $data_array = json_decode($value); ...
3
votes
2answers
30 views

Strange chars in JSON (obtained after cURL auth)

This is the function I use to grab a JSON file from Feedbin API. <?php error_reporting(E_ALL); // JSON URL which should be requested $json_url = 'https://api.feedbin.me/v2/entries.json'; ...
0
votes
1answer
55 views

JSON, get first result instead of last one

I have a JSON with a lot of results which contains in the various "objects", also this one related to images. "image":[ { "#text":"http:\/\/BLAHBLAH", ...
0
votes
2answers
25 views

json_decode: get specific entry out of a list of objects with same name [closed]

Here's my input JSON { "artist":{ "#text":"Radical Face", "mbid":"6c25514f-1f14-4106-a142-be95ba11f117" }, "name":"Let the River In", ...
0
votes
3answers
46 views

Using json_decode to retrieve ajax-sent javascript array for email

I'm trying to email the contents of a JS array by encoding using JSON.stringify and then decoding in the PHP which should then be sent via email. I get a success alert that the data is sent to the PHP ...
-1
votes
1answer
63 views

Sending JSON to PHP - decoding issue

I am trying to send this JSON to a PHP file, which can then insert it into a database: ["[{"title":"Marriage (Same Sex Couples)","date":"20…personnel overseas, and for connected purposes.}]", ...
0
votes
2answers
16 views

Limit json_decode entries to process

In $json_dailymile there are 20 entries. How can I modify the foreach to only process the first (newest) - say - 5? <?php $json_dailymile = ...
1
vote
1answer
33 views

Remove array from JSON decode

Here's the function I'm using to grab and process a JSON input: <?php $json = "http://pastebin.com/raw.php?i=ihAapq30"; $cache_lastfm = 'BLAHBLAHDIR/'.sha1($json).'.json'; ...
0
votes
1answer
53 views

PHP json_decode does not work

I am trying the following code to receive JSON . However the decode does not give a result. It works for a copy of the same string with escape slashes. <?php $input = ...

1 2 3 4 5 42
15 30 50 per page