| [ Web Proxy ] |
| Viewing: https://arrow.apache.org/docs/python/generated/pyarrow.json_.html | [Back] [Original] |
Section Navigation
Create instance of JSON extension type.
DataType, default pyarrow.string()The underlying data type. Can be on of the following types: string, large_string, string_view.
JsonTypeExamples
Create an instance of JSON extension type:
>>> import pyarrow as pa
>>> pa.json_(pa.utf8())
JsonType(extension<arrow.json>)
Use the JSON type to create an array:
>>> pa.array(['{"a": 1}', '{"b": 2}'], type=pa.json_(pa.utf8()))
<pyarrow.lib.JsonArray object at ...>
[
"{"a": 1}",
"{"b": 2}"
]
Copyright 2016-2026 Apache Software Foundation.
Apache Arrow, Arrow, Apache, the Apache logo, and the Apache Arrow project logo are either registered trademarks or trademarks of The Apache Software Foundation in the United States and other countries.
Created using Sphinx 9.1.0.
Built with the PyData Sphinx Theme 0.20.0.
| Web Proxy Viewer | New URL | Original Page |