Tagged Questions
-1
votes
2answers
23 views
Extracting json from php android
I have tried and tried this and can't seem to get to the bottom of it. here is the php code
$query = "SELECT `title` FROM `c2torsdb`.`pE_vacancies` WHERE active=1 LIMIT 2";
$result = ...
0
votes
3answers
57 views
Double array in php and javascript issue
I need to create an array in php and then to assign to java script function.I need something like this
I need this array as same as it looks
$users = array(
array('username' => 'user1', 'email' ...
-2
votes
0answers
24 views
PHP Array to JSON to Objective C [on hold]
I've a php script that return a jsonencode array! I want to transform this array in a NSArray in Obj-C, but I can't to do it! I've tried many way to do this, but I can't.
The json array is similar to ...
0
votes
2answers
60 views
jQuery JSON Decode ( PHP to Javascript)
I'm trying to make an autocomplete script. I pass variables through JSON, and then I don't know how to go on to decode JSON.
This is an example of the JSON code I got, and I'd like to convert it in a ...
-2
votes
2answers
41 views
Why type of array is this? [duplicate]
Okay so i'm using coinbase' API to ge the current price of BTC but when I try to use json_decode() it returns an error which is leading me to believe their responses aren't JSON.
...
1
vote
1answer
44 views
Array problems with JSON in PHP
I'm trying to output a JSON feed in PHP and I keep having an issue where the second result in the JSON feed includes the results of the first as well.
Source below, and output:
Source
function ...
1
vote
1answer
29 views
Python 3 requests library and json within a list
For example I have this json response:
response = '{"data" : {"next_Data" : { "actual_data" :["data1", "data2", "data3"]}}}'
In my usual approach to a big amount of json, I do this:
import ...
0
votes
3answers
39 views
Javascript or JQuery JSON Object grouping
I have a JSON data like this
[
{"attributes":{"SHAPELEN":26.2293318917963,"CITYID":2061}},
{"attributes":{"SHAPELEN":16.9352548253636,"CITYID":2062}},
...
0
votes
0answers
20 views
Counts values from JSON and write them in table. JAVASCRIPT
I have one huge JSON file and my task is to count how many parameters cell have inside and how many rows. Then write them in the table.
How can i do that, can anyone help me.
{
"dataset": [
...
1
vote
1answer
44 views
Android : Parsing JSON file issues
I've been fighting with some JSON parsing in my application and after 3 days of researching I still can't figure out the issue.
The error that is being sent is "org.json.JSONException: Value "
I ...
1
vote
3answers
2k views
Post JSON array to mvc controller
I'm trying to post a JSON array to a mvc controller. But no matter what i try, everything is 0 or null.
I have this table that contains textboxes. I need from all those textboxes it's ID and value ...
0
votes
1answer
65 views
Moving through an array one by one on click
I have an interaction that populates/repopulates a modal on click. Population happens through a traversal of key values of a JSON object. I need to have a bit of logic that sets these keys' index ...
0
votes
0answers
31 views
PHP json_encode json with variation of array. JSON Sometimes do not appear in firebug as JSON
Does JSON like any specific array structure?
when it is used in
$value['date'][0] = "12-21-2012";
$value['name'][1] = "Joe";
echo json_encode($value);
it seems to detect JSON under firebug
...
0
votes
3answers
41 views
Not getting json the way I want
I am trying to send or retrieve, not sure where the fault is, in a specific way...
Here is how it should look when using JSON.stringify(test):
{"1":"<div ...
3
votes
3answers
40 views
multiple array to json object convert?
I have multiple array like as follow:
var a=[1,2,3,4,5,6,7,8,9];
var b=["a","b","c","d","e","f","g","h","i","j"];
but i need to convert arrays to array object like as below:
ab=[
...