4 karma · joined May 4, 2019 (7y ago) · 2 submissions
comment 7y ago · link · parent
Since UTF-8 is the only sensible format for JSON it makes little sense to require UTF-16 and UTF-32 support. ( unless you have some special requirements on encoding, in which case you can just disregard that part and convert it on both ends yourself )
The only "issue" with non-object values I see is the one mentioned in the above link where naively concatenating JSON might lead to errors when you send two consecutive numbers but that's going to rarely happen so your system can just reject top-level numbers if it doesn't expect them. And even then the simple solution is to just add whitespace around it.
comment 7y ago · link · parent
This prevents malware from accessing your app while avoiding leaking authentication cookies to other http services on localhost.