[
https://issues.apache.org/jira/browse/ORC-584?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Owen O'Malley resolved ORC-584.
-------------------------------
Fix Version/s: 1.7.0
Assignee: akın tekeoğlu
Resolution: Fixed
I just committed this. Thanks, Akin!
> TypeDescription toJson() returns invalid json
> ---------------------------------------------
>
> Key: ORC-584
> URL: https://issues.apache.org/jira/browse/ORC-584
> Project: ORC
> Issue Type: Bug
> Components: Java
> Affects Versions: 1.6.2
> Reporter: akın tekeoğlu
> Assignee: akın tekeoğlu
> Priority: Major
> Fix For: 1.7.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
>
> toJson method returns invalid JSON string when the category field is STRUCT.
>
> Inside printJsonToBuffer method, we are careting invalid json array just
> like below,
>
> {code:java}
> {
> "fields":[
> "f1":{},
> "f2":{}
> ]
> }
> {code}
> But it should be like this:
> {code:java}
> {
> "fields":[
> {"f1":{}},
> {"f2":{}}
> ]
> }
> {code}
>
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)