Linked Questions

1353 votes
38 answers
2.6m views

How to parse JSON in Java

I have the following JSON text. How can I parse it to get the values of pageName, pagePic, post_id, etc.? { "pageInfo": { "pageName": "abc", "pagePic":...
Muhammad Maqsoodur Rehman's user avatar
7 votes
3 answers
2k views

Retrieve info from JSON bundle [duplicate]

While receiving a notification I am receiving some data mentioned below Bundle[{google.sent_time=1233212221545, msg={"message":"You received a chat message","type":"Match Maker","request_id":"501"}, ...
Abdul Rahman's user avatar
-3 votes
4 answers
7k views

Json array and object inside json object [duplicate]

{ "status": 200, "message": "API executed successfully.", "data": [{ "data": [{ "shopToken": "NQ2", "Id": 5, "UserId": 5, "ShopName":...
Bhavya Gusai's user avatar
0 votes
1 answer
7k views

How to parse JSON response in JSON array in Android [duplicate]

i am getting Response in JSON i want to parse this [ { "fbuid": "100000462110782" }, { "fullname": "Arun Pathania" }, { "fbuid": "100000257902867" }...
Arun's user avatar
  • 307
2 votes
2 answers
4k views

Easiest way to parse JSON data in Android Studio [duplicate]

JSON data to be parsed Hey guys, I've written a google apps script code to display data in JSON format. Could anyone tell me what the easiest way would be to parse this data in android studio. All the ...
Ved's user avatar
  • 31
4 votes
3 answers
568 views

How to extract value from API [duplicate]

How do I extract a certain value from the following api? https://blockchain.info/ticker { "USD" : {"15m" : 376.51, "last" : 376.51, "buy" : 376.79, "sell" : 377.61, "symbol" : "$"}, "ISK" : {"...
oshirowanen's user avatar
0 votes
1 answer
2k views

Android parse json from a url [duplicate]

I can parse json from a url in this way and my json looks like this; [ {"rank":1,"title":"The Shawshank Redemption"}, {"rank":2,"title":"The Godfather"}, {"rank":3,"title":"The Godfather: Part ...
Johny's user avatar
  • 45
1 vote
3 answers
9k views

How to parse JSON array into an Android list [duplicate]

I have a rather specific question about JSON parsing in Android. I have a requirement to download a single JSON array containing information in the format shown below, the number of JSON objects in ...
rtg93's user avatar
  • 23
-1 votes
1 answer
2k views

How to read and parse json file from assets in fragment [duplicate]

Place.json [ { "image":"https://www.google.com/search?q=eyfel+building&tbm=isch&ved=2ahUKEwiR2PaFivrrAhVTsSoKHSVaBD4Q2-cCegQIABAA&oq=eyfel+building&gs_lcp=...
Turok's user avatar
  • 49
0 votes
3 answers
3k views

How to get Strings from Array in JSON Object [duplicate]

How to get all the names from JSON object as a string array { "status_code": 200, "status": "success", "data": [ { "id": 1, "name": "Ajay" }, { "id": 2, "...
Priyadharshini Baskaran's user avatar
1 vote
1 answer
825 views

How to parse nested JSON from android? [duplicate]

I have the sample json data below. How can I parse it? "posts": [12] 0: { "id": 6429 "type": "post" "slug": "pyo-puth-remix-lyrics-dj-frenzy" "url": "http://song.com/2016/06/remix-lyrics.html" "...
Deep's user avatar
  • 89
-1 votes
1 answer
2k views

Convert a string to JSON array JAVA [duplicate]

I have this string which ive validated as JSON: {"listings":[{"Listing_ID":"1","Event_ID":"1","Venue_ID":"1","Start_Date":"19\/11\/2013","End_Date":"04\/01\/2014","Frequency":"Every Day"},{"...
James Roberts's user avatar
1 vote
1 answer
1k views

Convert JavaScript file to JSON [duplicate]

Possible Duplicate: How to parse JSON in Android I am writing an Android app where I'm getting a .js (JavaScript) file from a url and I want to read its contents. Is there any way to convert this ...
Rameez Hussain's user avatar
0 votes
3 answers
1k views

How to loop through JSONArray inside JSONObject [duplicate]

I currently have the following JSON structure: { "Apps": [ { "column1": "sample string 1", "column2": true }, { "column1": "sample string 1", "column2": true ...
Jayson Tamayo's user avatar
-2 votes
1 answer
2k views

How to select a certain data from JSON [duplicate]

I'm developing an Android application, I have to implement a function that parse my JSON and return to me certain result. For example, I have a JSON with this strcutures: [ { "date":"17-...
Mattia's user avatar
  • 21

15 30 50 per page
1
2 3 4 5
27