[Developers] query API - overuse and sanctions?

Kurt Bollacker kurt at spaceship.com
Sat May 9 07:13:59 UTC 2009


On Fri, May 08, 2009 at 11:33:21PM -0700, Alexander Botero-Lowry wrote:
> Umm. SpiderMonkey can't grok that. Rhino can't grok it either.
> Which means it's not valid JSON. period.

But wait!  Pedantic man to the resuce!

If you look at the RFC that defines JSON :

http://www.ietf.org/rfc/rfc4627.txt

you'll see the relevant phrase : 

   "The names within an object SHOULD be unique."

blocking the bullet of common sense with my bare hands, I looked up
the def of "SHOULD" in RFC 2119 :

 "3. SHOULD   This word, or the adjective "RECOMMENDED", mean that there
     may exist valid reasons in particular circumstances to ignore a
     particular item, but the full implications must be understood and
     carefully weighed before choosing a different course. "

So I wonder what the "valid reasons" are for Freebase?  My guess is
that there are none, and so Freebase should return an error when
presented with invalid JSON.



								Kurt ;-)



More information about the Developers mailing list