How to fetch Data From JSON

前端 未结 6 1111
予麋鹿
予麋鹿 2021-01-27 15:01

I have following data from JSON

{
        \"MenuName\": \"starter dish\",
        \"SubMenu\": [
            \"pizza dish1\",
            \"pizza dish2\"
                


        
6条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-27 15:19

    you can use this link for creating POGO class for your response. It will automatically generate class for your response.

    Use google GSON library to parse your response.

    or you can simply create a JSON Array or Objects to parse it. in your case it is JSON Object or JSON arrays.

提交回复
热议问题