Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is nice to parse incomplete JSON as they come in.

I did something similar for streaming but built it with a streaming protocol at the frame level wrapping the JSON messages [1]. The streaming protocol has support for both the LF based scheme and the HTTP Content-Length header based scheme. It's for supporting MCP and LSP.

[1] https://github.com/williamw520/zigjr/?tab=readme-ov-file#str...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: