News for hackers. Stuff that matters.
Re:Parsing JSON Is a Minefield (2018) by paulryanrogers on Sunday August 18, 2019 @12:00AM (#20728159)
JSON over HTTP can communicate its size with an HTTP header.
Re:Parsing JSON Is a Minefield (2018) by blackflame7000 on Sunday August 18, 2019 @05:08AM (#20729114)
There’s no reason strings cant be sent like binary if you do a size header first. The problem is trying to send binary like a string where your data might have 0s that could be interpreted by the receiver as string terminations. Typically base64 is used to address this issue
Re:Parsing JSON Is a Minefield (2018) by edflsafoiewq on Sunday August 18, 2019 @09:44AM (#20730089)
Even if it's compressed?