The Julia implementation (Arrow.jl) has the ability to output an
Arrow.Table as a JSON array of objects or object of arrays via the
JSONTables.jl package, like:
using Arrow, JSONTables
julia> t = Arrow.Table("tbl.arrow")
Arrow.Table with 4 rows, 1 columns, and schema:
:a String
julia> arraytable(t)
"[{\"a\":null},{\"a\":\"a\"},{\"a\":\"b\"},{\"a\":\"a\"}]"
julia> objecttable(t)
"{\"a\":[null,\"a\",\"b\",\"a\"]}"
You can also provide an IO argument as the 1st argument to
arraytable/objecttable to write the results out to a file directly.
In case that helps at all!
-Jacob
On Wed, Dec 7, 2022 at 9:20 AM James Duong via user <[email protected]>
wrote:
> Hi,
>
> Is there a way to write JSON files from Arrow Tables? I see other formats
> such as CSV and Parquet supported for both, but only reading for JSON.
>
> --
>
> *James Duong*
> Lead Software Developer
> Bit Quill Technologies Inc.
> Direct: +1.604.562.6082 | [email protected]
> https://www.bitquilltech.com
>
> This email message is for the sole use of the intended recipient(s) and
> may contain confidential and privileged information. Any unauthorized
> review, use, disclosure, or distribution is prohibited. If you are not the
> intended recipient, please contact the sender by reply email and destroy
> all copies of the original message. Thank you.
>