[
https://issues.apache.org/jira/browse/AVRO-1784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15236617#comment-15236617
]
Thiruvalluvan M. G. commented on AVRO-1784:
-------------------------------------------
I'm sorry for the delay.
I made two small modifications:
* Changed {{FORMATTER}} to {{F}}, just to keep the convention of single-letter
names for template parameters.
* Made {{JsonNullFormatter}} the default value for {{F}}. This will make any
old code work normally. It is unlikely that anybody used the code outside this
library because it is not part of the api. But still, I made it backward
compatible.
I could not commit because of apache had some permission issue. I'll commit it
as soon as the problem is resolved.
> Should have a C++ json encoder that pretty prints.
> --------------------------------------------------
>
> Key: AVRO-1784
> URL: https://issues.apache.org/jira/browse/AVRO-1784
> Project: Avro
> Issue Type: Improvement
> Components: c++
> Reporter: John McClean
> Assignee: John McClean
> Attachments: AVRO-1784.patch
>
>
> It would nice to allow json ouput to be pretty printed. It's obviously
> possible to post-process, but that frequently re-orders which results in the
> problem described in AVRO-1636. In addition it obviously requires another
> pass through the data.
> I'll attach a patch.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)