在Java中将json文件转换为Excel工作表或csv

时间:2018-08-30 05:28:06

标签: java json excel

{
    "firstName": "John",
    "lastName": "Smith",
    "address": [
      {
        "streetAddress": "21 2nd Street",
        "city": "New York",
        "state": "NY",
        "postalCode": "0021"
      }
    ],
    "age": 25,
    "phoneNumbers": [
      {
        "type": "home",
        "number": "212 555-1234"
      },
      {
        "type": "fax",
        "number": "212 555-1234"
      }
    ]
  }

将此作为json文件并作为输入,并将其转换为excel工作表。 我在解析json数组时遇到了困难。

0 个答案:

没有答案