-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathjson_sequence.format.txt
31 lines (26 loc) · 1.82 KB
/
json_sequence.format.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
┏━━━━━━━━━━━━━━━━━━━┓
┃ JSON_SEQUENCE ┃
┗━━━━━━━━━━━━━━━━━━━┛
ALTERNATIVES ==> T# - json text sequence: standard RFC
L# - jsonlines
N# - ndjson, forked from jsonlines
C# - concatenated JSON
#None has a lot of following, but ndjson has most
#Letter before # means which format supports it. No letter means all do
GOAL ==> #Streaming-version of JSON ARR
ENCODING ==> #UTF-8 only
FORMAT ==> #Separators:
# - no enclosing [], no end of sequence indicator
# - values not separated by commas, but:
T# - prepended by U+001E (RS) and appended by U+000A (LF)
LN# - appended by LF or CRLF
C# - prepended|appended by nothing
N# - values cannot contain CR
#Exceptions:
# - ignoring empty values (instead of meaning empty values):
T# - mandatory
LNC# - optional
# - values that throw error on parsing:
T# - do not stop streaming, including "truncated", i.e. missing end U+000A
N# - stop streaming
LC# - not specified