Does LibreOffice Calc support JSON file importing/sorting?

后端 未结 3 523
暖寄归人
暖寄归人 2021-01-03 18:24

I\'ve been trying to import a couple of .json files into LibreOffice Calc.

Although I can get the raw data in, it isn\'t sorting as I would think it might (by placin

相关标签:
3条回答
  • 2021-01-03 19:00

    There's a LibreOffice GetRest plugin with documentation written in broken English, that has a "parseJSON" formula. It won't convert JSON to CSV (without a lot of grunt work) but it might help your use case.

    0 讨论(0)
  • 2021-01-03 19:03

    Had the same problem myself (that's how I found this question).

    So, for the next person finding this - the answer is no - LibreOffice Calc does not support direct import of JSON.

    And the next logical step indeed is converting to CSV. There are free online JSON to CSV converters, and using one of them (http://www.convertcsv.com/json-to-csv.htm), I was easily able to make a correct CSV which Calc imports without a problem.

    One possible caveat is if you have complex objects represented in JSON - that may not be convertible to CSV, but then again, if it doesn't fit into CSV, it probably doesn't fit into spreadsheet format either.

    0 讨论(0)
  • 2021-01-03 19:04

    If you can run Python scripts in Libreoffice Calc, then it should be possible when you see what's in here: http://blog.appliedinformaticsinc.com/how-to-parse-and-convert-json-to-csv-using-python/

    0 讨论(0)
提交回复
热议问题