2016-09-28 115 views
-5

我正在從服務器這個JSON響應如何deseriallize JSON字符串的Android如何反序列化JSON字符串使用POJO類

{ "results": { "status": "true", "message": "Successfully Get Data", "PdfData": { "Pdf_Result": [{ "Pdf_File_Name": "aft.pdf", "Subject_Name": "Maths", "Subject_Id": "1", "Chapter_ID": "M1111", "Chapter_Name": "Relations and Functions", "Downloaded": "YES" }, { "Pdf_File_Name": "date.pdf", "Subject_Name": "Maths", "Subject_Id": "1", "Chapter_ID": "M1112", "Chapter_Name": "Algebra", "Downloaded": "YES" }] } } }

+0

[如何在Android中解析JSON]可能的重複(http://stackoverflow.com/questions/9605913/how-to-parse-json-in-android) – David

回答

0

看到jsonschema2pojo.org網站和GSON庫教程

0
+0

Yaa我知道如何創建pojo類,但我想知道如何獲得Pdf_Result(數組數據)使用自定義反序列化器類來響應 –

+0

您的意思是如何解析數據? –

+0

是@Mohit我想解析數據,但使用自定義Deserializer類給出狀態,消息和pdf_Result數據 –

相關問題