You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Oleg Zhurakousky (JIRA)" <ji...@apache.org> on 2016/10/25 14:19:58 UTC

[jira] [Assigned] (NIFI-969) Add option to use standard JSON or Avro-JSON to ConvertAvroToJSON

     [ https://issues.apache.org/jira/browse/NIFI-969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Zhurakousky reassigned NIFI-969:
-------------------------------------

    Assignee: Oleg Zhurakousky

> Add option to use standard JSON or Avro-JSON to ConvertAvroToJSON
> -----------------------------------------------------------------
>
>                 Key: NIFI-969
>                 URL: https://issues.apache.org/jira/browse/NIFI-969
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Extensions
>    Affects Versions: 0.3.0
>            Reporter: Ryan Blue
>            Assignee: Oleg Zhurakousky
>             Fix For: 1.1.0
>
>
> ConvertAvroToJSON uses {{GenericData#toString(GenericRecord)}} to convert to JSON. This produces [Avro-JSON|https://avro.apache.org/docs/1.7.7/spec.html#json_encoding], which probably isn't what most users want because it adds an unexpected layer for Avro union types:
> bq. the union schema {{["null","string",...]}} ... would encode: the string {{"a"}} as {{{"string": "a"}}} ...
> It would be good to have a conversion that doesn't add those layers as an option.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)