ndjson

(NDJSON에서 넘어옴)

1 개요[ | ]

Newline Delimited JSON (ndjson), (NDJSON)
개행 구분 JSON
  • 각 행이 JSON인 텍스트
  • 스트리밍 프로토콜에서 JSON을 구분짓는 표준
  • 각 행은 유효한 JSON 값이다.
  • 행 구분자는 '\n'이다.
이에 따라 '\r\n'도 사용가능하다. JSON 값을 파싱할 때, 뒷부분의 화이트 스페이스('\r')는 무시된다.
  • 미디어 타입: application/x-ndjson[1][2]
  • 파일 확장자: .ndjson

Ndjson.png

2 예시[ | ]

{"some":"thing"}
{"foo":17,"bar":false,"quux":true}
{"may":{"include":"nested","objects":["and","arrays"]}}
{ "index" : { "_index" : "test", "_id" : "1" } }
{ "field1" : "value1" }
{ "delete" : { "_index" : "test", "_id" : "2" } }
{ "create" : { "_index" : "test", "_id" : "3" } }
{ "field1" : "value3" }
{ "update" : {"_id" : "1", "_index" : "test"} }
{ "doc" : {"field2" : "value2"} }

3 같이 보기[ | ]

4 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}