Re: RE: note 92873 rejected and deleted from function.json-encode by notes editor danbrown
| From: | Daniel Brown | Date: | Thu, 13 Aug 2009 01:44:51 +0000 |
| Subject: | Re: RE: note 92873 rejected and deleted from function.json-encode by notes editor danbrown | ||
| References: | 1 2 3 4 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-159419@lists.php.net to get a copy of this message | ||
On Wed, Aug 12, 2009 at 19:58, Michael Geary<mg@mg.to> wrote:
> I did see the note about using bugs.php.net to report documentation bugs,
> but I was somehow thinking that meant just bugs in the documentation itself,
> not in the user comments. Maybe it would help to make it explicit that this
> should be used to report errors in user comments as well as in the
> documentation proper.
That's a really good idea, Mike. If you would like, you could
file that as a feature request for the website as well.
> In any case, you may have saved me some embarrassment by deleting my
> comment. I just took a closer look at the JSON spec, and it doesn't actually
> say anywhere whether a complete, valid JSON string can contain just a
> primitive value or if it has to be an array or object.
>
> It's a pretty major omission in the spec, and in fact JSON implementations
> have done it both ways. For example, json_encode() and json_decode() allow
> primitive values, but www.jsonlint.com allows only arrays and objects.
>
> I sent Doug Crockford a note asking for his opinion - I'll know better how
> to proceed after I hear back from him. :-)
Sounds good.
--
</Daniel P. Brown>
daniel.brown@parasane.net || danbrown@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
Check out our great hosting and dedicated server deals at
http://twitter.com/pilotpig