[ 
https://issues.apache.org/jira/browse/AVRO-1063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13782060#comment-13782060
 ] 

Doug Cutting commented on AVRO-1063:
------------------------------------

I think we should use Json parsers that obey Postel's law.  For example, 
Jackson in Java is configured to permit C-style comments in Json, which are 
non-standard.  But no implementation should never use non-standard syntax in 
generated Json, especially that written to a data file or in an RPC handshake.

So, for example, schemas that are hand-edited and primarily used as source for 
a code-generating compiler might contain comments.  Some implementations might 
have trouble parsing these.  The implementations would not be in error, rather 
the schemas would be.

> Ruby client should use multi_json rather than being locked down to yajl
> -----------------------------------------------------------------------
>
>                 Key: AVRO-1063
>                 URL: https://issues.apache.org/jira/browse/AVRO-1063
>             Project: Avro
>          Issue Type: Improvement
>          Components: ruby
>            Reporter: Paul Dlug
>            Priority: Minor
>             Fix For: 1.7.6
>
>         Attachments: AVRO-1063.diff
>
>
> The avro ruby client uses yajl for JSON serialization which is just one of 
> many suitable JSON implementations for ruby. The multi_json gem provides a 
> wrapper for JSON serialization selecting the fastest library available (Oj is 
> now even faster than Yajl) and falling back to a pure ruby implementation 
> bundled with multi_json. Requiring yajl also precludes the ruby gem from 
> being used under jruby since it requires a C extension.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to