3 ms·
If it has to be mangled to such an extent to do this, then it seems reasonable to assume JSON is the wrong format for the task. Better to rethink it from scrat
by aljow 1y ago
If it has to be mangled to such an extent to do this, then it seems reasonable to assume JSON is the wrong format for the task.
Better to rethink it from scratch instead of trying to put a square peg in a round hog.
- deleted 1y ago[deleted]
- danabramov 1y agoI'm being a bit coy about it but the article aims to describe key ideas in the RSC wire protocol, which is an implementation detail of React and isn't actually beholden to JSON itself. JSON is just a nice starting point to motivate it. However, I think reusing JSON for object notation kind of makes sense (and allows native JSON.parse calls for large objects).