Jorge Vargas schrieb: > if you follow the diagram on the right, the top level element is > object which contains members where each member is a pair where the > key is always a string. > On the other hand array is always a right side symbol which can only > be a value, therefore the rule for pair forces it to be always a > value, and never a top level. > > That is of course assuming that's a grammar in BNF which I think it is.
It's some informal notation, not really BNF, and I think it leaves it open which elements are allowed at the top level of a "json text" since it does not define what a "json text" actually is; it only defines what a json object and a json array is. So we should just follow the rfc4627 which is clear about that point. -- Christoph --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears-trunk?hl=en -~----------~----~----~----~------~----~------~--~---
