4 ms·
Ah. Someone at #go-nuts said it wasn't valid, so I made the change and it worked. If it's valid, than yes, it must be a bug in Go's json package. Edited the com
by dchest 17y ago
Ah. Someone at #go-nuts said it wasn't valid, so I made the change and it worked. If it's valid, than yes, it must be a bug in Go's json package. Edited the comment, filed a bug report (http://code.google.com/p/go/issues/detail?id=114 http://code.google.com/p/go/issues/detail?id=114). Thanks!
- gcampbell 17y agoAs a note, top-level JSON arrays have been demonstrated to have some security problems in web browsers when delivered via GET requests; see http://haacked.com/archive/2009/06/25/json-hijacking.aspx http://haacked.com/archive/2009/06/25/json-hijacking.aspx for more. (This isn't relevant for JSON-as-interchange-format in other contexts, of course).