avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saptarshi Guha <sg...@mozilla.com>
Subject Re: Comments in avro json spec
Date Sun, 13 Mar 2011 22:07:20 GMT



> Hello,
> 
> I noticed that // and /* */ are valid comments. However, when commenting bits out
> I get an error, the following is valid JSON (I realize that it isn't a valid scheme right
now)
> 
> {
>    "type": "record",
>    "name": "FOOt",
>    "namespace":"org.me.you",
>    "fields" : [
> 	{"name" : "data" , "type": [ "aX1","bX2","cX3"]}
> 	// {"name" : "attributes" , "type":  {
> 	//     "type" : "map",
> 	//     "values" : [ "aX1", "bX2", "cX3"]
> 	// }}
>   ]
> }
> 
> I get an Error parsing JSOn usning 1.6 Python bindings
> Uncommenting the region, it successfully parses but fails as an invalid schema (separate
issue)
> 
> Saptarshi
> 

Actually, I meant deleting instead of uncommenting. Deleting the commented out regions
actually parses. If comments were ignored, it should have parsed even before deletion.

Cheers

J
Mime
View raw message