如何在Java中创建JSON数组

前端之家收集整理的这篇文章主要介绍了如何在Java中创建JSON数组前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我有一个 JSON结构如下.如何以编程方式创建此Array结构?

JSON结构:

{ 
"Employee": 
    [ 
      { 
        "EmP325235": 
          { 
             "Name":"Rekha_S","firstName":"Rekha","phoneWork":"788908909","lastName":"S","namePrefix":"Miss","phoneMobile":"3347687878","phoneHome":"5768900909","Email":"" 
          },"Em252555": 
          { 
             "Name":"Roopa_N","firstName":"Roopa","phoneWork":"0471245367","lastName":"N","namePrefix":"","phoneMobile":"","phoneHome":"","Email":"" 
      } 
      } 
    ],"User_Details": 
   { 
       "USER_ID":"7890","Number":"8585858585","Password":"Passwordsgs" 
   } 
}

解决方法

原文链接:https://www.f2er.com/java/126376.html

猜你在找的Java相关文章