While I was writing a program that sends and receive some JSON from a service, I stumbled upon a challenge. The server doesn't send a stop-byte (not going to lie, took me a few hours to realize it), it's just byte-by-byte JSON. Not even single quotes.
I was looking for an elegant solution before giving up and doing a while loop that keeps adding byte by byte in a buffer and checking if it's a valid JSON.
Has anyone ever had to deal with something similar?