How to Create JSON Array in Java

前端 未结 3 642
陌清茗
陌清茗 2020-12-08 23:45

I have a JSON structure as given below. How can I create this Array structure programmatically?

JSON srtucture:

{ 
\"Employee\": 
         


        
3条回答
  •  伪装坚强ぢ
    2020-12-09 00:09

    I'd probably use the GSON library which will marshall Java objects.

    There's an array example to get you started, as well as a ton of others in the user guide.

提交回复
热议问题