[
https://issues.apache.org/jira/browse/PIG-1914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13008312#comment-13008312
]
Chao Tian commented on PIG-1914:
--------------------------------
Hi Dmitry,
Thanks to your comment. It is good to see that there is one JSON loader
already. I read that code. I found the current solution is parsing the input
json data into a map object.
However, in my design , i plan to support JSON to Tuple conversion. The element
key of each JSON object would be load as the alias of Tuple. And the element
value would be load as data in tuple. The simple data type could be converted
easily. For the complex type, the object of JSON could be mapped into Tuple of
Pig, and the array of JSON could be mapped into DataBag of Pig.
And I also plan to write a storer to store data in JSON format.
Any thought?
Thanks,
Chao
> 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.8.0
> Reporter: Chao Tian
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira