[
https://issues.apache.org/jira/browse/PIG-1914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564656#comment-13564656
]
Jonathan Packer commented on PIG-1914:
--------------------------------------
A note about handling arrays: the proposed JsonLoader will wrap the values of a
flat JSON array, ex. "arr": [1, 2, 3, 4], in single-element tuples by default.
However, if a tuple schema, for example coords: (lat: double, long: double), is
specified for a field which is a flat JSON array, the JsonLoader will cast the
array to a tuple. Nested arrays are loaded properly if a valid schema is
specified.
> Support load/store JSON data in Pig
> -----------------------------------
>
> Key: PIG-1914
> URL: https://issues.apache.org/jira/browse/PIG-1914
> Project: Pig
> Issue Type: New Feature
> Affects Versions: 0.11
> Reporter: Chao Tian
> Attachments: json.patch, PIG-1914.patch
>
>
> The JSON is a commonly used data storage format. It is popular for storing
> structured data, especially for JavaScript data exchange.
> Pig should have the ability to load/store JSON format data. I plan to write
> one for the piggy bank.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira