Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Question

Post Timeline

Post Closed as "Duplicate" by njzk2, Community Bot
added 10 characters in body
Source Link
hadi
  • 497
  • 1
  • 6
  • 19

i create a array in my php file

$array = array();

$array = array();

and give it value and encode it by json like this :

json_encode($array);

`json_encode($array)`;

this is my output :

[
 "1",
 "notification 1",
 "hello",
 "first notification",
 "2015年07月23日",
 "2015年07月30日",
 "www.google.com",
 "2",
 "notification 2",
 "hello2",
 "second notification",
 "2015年07月23日",
 "2015年07月28日",
 "www.yahoo.com"
]

how can i parse it in android

i want a array in android

plz help me

i create a array in my php file

$array = array();

and give it value and encode it by json like this :

json_encode($array);

this is my output :

[
 "1",
 "notification 1",
 "hello",
 "first notification",
 "2015年07月23日",
 "2015年07月30日",
 "www.google.com",
 "2",
 "notification 2",
 "hello2",
 "second notification",
 "2015年07月23日",
 "2015年07月28日",
 "www.yahoo.com"
]

how can i parse it in android

i want a array in android

plz help me

i create a array in my php file

$array = array();

and give it value and encode it by json like this :

`json_encode($array)`;

this is my output :

[
 "1",
 "notification 1",
 "hello",
 "first notification",
 "2015年07月23日",
 "2015年07月30日",
 "www.google.com",
 "2",
 "notification 2",
 "hello2",
 "second notification",
 "2015年07月23日",
 "2015年07月28日",
 "www.yahoo.com"
]

how can i parse it in android

i want a array in android

plz help me

deleted 337 characters in body; edited title
Source Link
hadi
  • 497
  • 1
  • 6
  • 19

android parse array Json to java array

thisi create a array in my jsonphp file

i want directly send json to my$array = array in android();

but i dont want i dont use fromand give it value and encode it by json like this code:

JSONArray cast = jsonResponse.getJSONArray("i dont have any name for this");

json_encode($array);

plz helpthis is my output :

[
 ["1""1", "notification 1", "breif notification 1""hello", "complete notification"first 1"notification", "2015年07月23日", "2015年07月30日", "www.google.com", "2", "notification 2", "breif notification 2""hello2", "complete notification"second 2"notification", "2015年07月23日", "2015年07月28日", "www.yahoo.com", "3", "notification3", "breif3", "a arze salam va dorod faravan helooooo", "2015年08月08日", "0000-00-00", "www.exampleyahoo.com", "4", "notification4", "sada", "fasd", "2015年08月08日", "0000-00-00", "das", "5", "aada", "dasda", "das", "2015年08月08日", "2015年08月29日", "dasd"]
]

how can i parse it in android

i want a array in android

plz help me

android parse array Json to java array

this in my json

i want directly send json to my array in android

but i dont want i dont use from this code

JSONArray cast = jsonResponse.getJSONArray("i dont have any name for this");

plz help

 ["1", "notification 1", "breif notification 1", "complete notification 1", "2015年07月23日", "2015年07月30日", "www.google.com", "2", "notification 2", "breif notification 2", "complete notification 2", "2015年07月23日", "2015年07月28日", "www.yahoo.com", "3", "notification3", "breif3", "a arze salam va dorod faravan helooooo", "2015年08月08日", "0000-00-00", "www.example.com", "4", "notification4", "sada", "fasd", "2015年08月08日", "0000-00-00", "das", "5", "aada", "dasda", "das", "2015年08月08日", "2015年08月29日", "dasd"]

android parse array Json to java

i create a array in my php file

$array = array();

and give it value and encode it by json like this :

json_encode($array);

this is my output :

[
 "1", "notification 1", "hello", "first notification", "2015年07月23日", "2015年07月30日", "www.google.com", "2", "notification 2", "hello2", "second notification", "2015年07月23日", "2015年07月28日", "www.yahoo.com"
]

how can i parse it in android

i want a array in android

plz help me

Post Undeleted by hadi
Post Deleted by hadi
added 209 characters in body; edited title
Source Link
hadi
  • 497
  • 1
  • 6
  • 19

android parse array Json to java array

this in my json

i want directly send json to my array in android

but i dont want i dont use from this code

JSONArray cast = jsonResponse.getJSONArray("i dont have any name for this");

plz help

 ["1", "notification 1", "breif notification 1", "complete notification 1", "2015年07月23日", "2015年07月30日", "www.google.com", "2", "notification 2", "breif notification 2", "complete notification 2", "2015年07月23日", "2015年07月28日", "www.yahoo.com", "3", "notification3", "breif3", "a arze salam va dorod faravan helooooo", "2015年08月08日", "0000-00-00", "www.example.com", "4", "notification4", "sada", "fasd", "2015年08月08日", "0000-00-00", "das", "5", "aada", "dasda", "das", "2015年08月08日", "2015年08月29日", "dasd"]

android parse array Json

this in my json

i want directly send json to my array in android

but i dont want

plz help

 ["1", "notification 1", "breif notification 1", "complete notification 1", "2015年07月23日", "2015年07月30日", "www.google.com", "2", "notification 2", "breif notification 2", "complete notification 2", "2015年07月23日", "2015年07月28日", "www.yahoo.com", "3", "notification3", "breif3", "a arze salam va dorod faravan helooooo", "2015年08月08日", "0000-00-00", "www.example.com", "4", "notification4", "sada", "fasd", "2015年08月08日", "0000-00-00", "das", "5", "aada", "dasda", "das", "2015年08月08日", "2015年08月29日", "dasd"]

android parse array Json to java array

this in my json

i want directly send json to my array in android

but i dont want i dont use from this code

JSONArray cast = jsonResponse.getJSONArray("i dont have any name for this");

plz help

 ["1", "notification 1", "breif notification 1", "complete notification 1", "2015年07月23日", "2015年07月30日", "www.google.com", "2", "notification 2", "breif notification 2", "complete notification 2", "2015年07月23日", "2015年07月28日", "www.yahoo.com", "3", "notification3", "breif3", "a arze salam va dorod faravan helooooo", "2015年08月08日", "0000-00-00", "www.example.com", "4", "notification4", "sada", "fasd", "2015年08月08日", "0000-00-00", "das", "5", "aada", "dasda", "das", "2015年08月08日", "2015年08月29日", "dasd"]
Source Link
hadi
  • 497
  • 1
  • 6
  • 19
Loading
lang-java

AltStyle によって変換されたページ (->オリジナル) /