[
https://issues.apache.org/jira/browse/PIG-2949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14209537#comment-14209537
]
Eyal Allweil commented on PIG-2949:
-----------------------------------
David's fix seems to work, but maybe we want to accept arrays of the general
form {"arrayfield":[fld, fld, fld]} where fld is any field type, not just a
string? Non-string "primitive" arrays are also valid json.
> JsonLoader only reads arrays of objects
> ----------------------------------------
>
> Key: PIG-2949
> URL: https://issues.apache.org/jira/browse/PIG-2949
> Project: Pig
> Issue Type: Bug
> Affects Versions: 0.10.0
> Environment: os x mountain lion
> Reporter: David LaBarbera
> Priority: Minor
> Attachments: JsonLoader.java
>
>
> I'm trying to load a vendor file that's json ecoded into pig. One of the
> fields is an array of strings. The builtin JsonLoader only reads arrays
> composed of json objects
> {"object_array}:[{"element":"value1"},{"element":"value2"}]} works
> but
> {"string_array"}:["value1","value2"] does not
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)