Line Delimited JSON is a minimal specification for sending and receiving JSON over a stream protocol, such as TCP. Basically each JSON is delimited with one of all three typical line endings ‘0x0A’ (Unix), ‘0x0D’ (Mac), ‘0x0D0A’ (Windows).
Questions tagged [ldjson]
7 questions
16
votes
5 answers
Choice of transports for JSON over TCP
I'm writing a simple streaming JSON service. It consists of JSON messages, sent intermittently, for a long period of time (weeks or months).
What is the best practise with regard to sending multiple JSON messages over a plain TCP socket?
Some…

fadedbee
- 42,671
- 44
- 178
- 308
1
vote
0 answers
How to parse line-delimited JSON without using String class?
I am using RestTemplate.exchange to get data from a URI. I have no control over how the JSON is returned, and for unknown reasons it happens to be line-delimited JSON (also called JSON Lines, dljson, JSONL):
{}\n
{}\n
{}
This is using Spring Boot…

For Serious
- 39
- 6
1
vote
1 answer
Googlebot fails to recognize JSON-LD in the rich results test utility
In my .NET Core Web App I use the library (NuGet package) Schema.NET which appends the following JSON-LD (the library doesn't really matter because it's clearly not its fault):