[要約] RFC 8091は、JSONテキストシーケンスのためのメディアタイプの構造化構文サフィックスを定義しています。このRFCの目的は、JSONテキストシーケンスを正確に識別し、処理するための標準化された方法を提供することです。

Internet Engineering Task Force (IETF)                          E. Wilde
Request for Comments: 8091                               CA Technologies
Category: Informational                                    February 2017
ISSN: 2070-1721
        

A Media Type Structured Syntax Suffix for JSON Text Sequences

JSONテキストシーケンスのメディアタイプ構造化構文のサフィックス

Abstract

概要

Structured syntax suffixes for media types allow other media types to build on them and make it explicit that they are built on an existing media type as their foundation. This specification defines and registers "+json-seq" as a structured syntax suffix for JSON text sequences.

メディアタイプの構造化された構文サフィックスを使用すると、他のメディアタイプをそれらに基づいて構築し、既存のメディアタイプを基盤として構築されていることを明示的に示すことができます。この仕様では、JSONテキストシーケンスの構造化構文サフィックスとして「+ json-seq」を定義して登録します。

Status of This Memo

本文書の状態

This document is not an Internet Standards Track specification; it is published for informational purposes.

このドキュメントはInternet Standards Trackの仕様ではありません。情報提供を目的として公開されています。

This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Not all documents approved by the IESG are a candidate for any level of Internet Standard; see Section 2 of RFC 7841.

このドキュメントは、IETF(Internet Engineering Task Force)の製品です。これは、IETFコミュニティのコンセンサスを表しています。公開レビューを受け、インターネットエンジニアリングステアリンググループ(IESG)による公開が承認されました。 IESGによって承認されたすべてのドキュメントが、あらゆるレベルのインターネット標準の候補になるわけではありません。 RFC 7841のセクション2をご覧ください。

Information about the current status of this document, any errata, and how to provide feedback on it may be obtained at http://www.rfc-editor.org/info/rfc8091.

このドキュメントの現在のステータス、エラータ、およびフィードバックの提供方法に関する情報は、http://www.rfc-editor.org/info/rfc8091で入手できます。

Copyright Notice

著作権表示

Copyright (c) 2017 IETF Trust and the persons identified as the document authors. All rights reserved.

Copyright(c)2017 IETF Trustおよびドキュメントの作成者として識別された人物。全著作権所有。

This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.

この文書は、BCP 78およびIETF文書に関するIETFトラストの法的規定(http://trustee.ietf.org/license-info)の対象であり、この文書の発行日に有効です。これらのドキュメントは、このドキュメントに関するあなたの権利と制限を説明しているため、注意深く確認してください。このドキュメントから抽出されたコードコンポーネントには、Trust Legal Provisionsのセクション4.eに記載されているSimplified BSD Licenseのテキストが含まれている必要があり、Simplified BSD Licenseに記載されているように保証なしで提供されます。

Table of Contents

目次

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   2
   2.  Terminology . . . . . . . . . . . . . . . . . . . . . . . . .   2
   3.  The "+json-seq" Structured Syntax Suffix  . . . . . . . . . .   2
   4.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .   3
   5.  Security Considerations . . . . . . . . . . . . . . . . . . .   4
   6.  References  . . . . . . . . . . . . . . . . . . . . . . . . .   4
     6.1.  Normative References  . . . . . . . . . . . . . . . . . .   4
     6.2.  Informative References  . . . . . . . . . . . . . . . . .   5
   Acknowledgements  . . . . . . . . . . . . . . . . . . . . . . . .   5
   Author's Address  . . . . . . . . . . . . . . . . . . . . . . . .   5
        
1. Introduction
1. はじめに

Media type structured syntax suffixes [RFC6838] were introduced as a way for a media type to signal that it is based on another media type as its foundation. Some structured syntax suffixes were registered initially [RFC6839], including "+json", for the widely popular JSON format [RFC7159].

メディアタイプの構造化構文のサフィックス[RFC6838]は、メディアタイプがその基礎として別のメディアタイプに基づいていることを通知する方法として導入されました。広く普及しているJSON形式[RFC7159]用に、「+ json」を含むいくつかの構造化構文サフィックスが最初に登録されました[RFC6839]。

JSON text sequences [RFC7464] is a recent specification in the JSON space that defines how a sequence of multiple JSON texts can be represented in one representation. This document defines and registers the "+json-seq" structured syntax suffix in the "Structured Syntax Suffix Registry".

JSONテキストシーケンス[RFC7464]は、複数のJSONテキストのシーケンスを1つの表現で表す方法を定義する、JSONスペースの最近の仕様です。このドキュメントは、「+ json-seq」構造化構文サフィックスを定義し、「構造化構文サフィックスレジストリ」に登録します。

2. Terminology
2. 用語

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119].

このドキュメントのキーワード「MUST」、「MUST NOT」、「REQUIRED」、「SHALL」、「SHALL NOT」、「SHOULD」、「SHOULD NOT」、「RECOMMENDED」、「MAY」、および「OPTIONAL」は、 [RFC2119]で説明されているように解釈されます。

3. The "+json-seq" Structured Syntax Suffix
3. "+ json-seq"構造化構文のサフィックス

The use case for the "+json-seq" structured syntax suffix is the same as for "+json": It SHOULD be used by media types when parsing the JSON text sequence of a media type leads to a meaningful result, by simply using the generic JSON text sequence processing.

「+ json-seq」構造化構文の接尾辞の使用例は、「+ json」の場合と同じです。メディアタイプのJSONテキストシーケンスを解析して、意味のある結果が得られる場合は、メディアタイプで使用する必要があります。汎用JSONテキストシーケンス処理。

Applications encountering such a media type can then either simply use generic processing if all they need is a generic view of the JSON text sequence, or they can use generic JSON text sequence tools for initial parsing and then implement their own specific processing on top of that generic parsing tool.

そのようなメディアタイプに遭遇したアプリケーションは、必要なものがJSONテキストシーケンスの汎用ビューである場合は単に汎用処理を使用するか、または初期解析に汎用JSONテキストシーケンスツールを使用して、その上に独自の特定の処理を実装することができます。一般的な解析ツール。

4. IANA Considerations
4. IANAに関する考慮事項

Structured Syntax Suffixes are registered within the "Structured Syntax Suffix Registry" maintained at <https://www.iana.org/assignments/media-type-structured-suffix>.

構造化構文サフィックスは、<https://www.iana.org/assignments/media-type-structured-suffix>で管理されている「構造化構文サフィックスレジストリ」内に登録されています。

IANA has registered the "+json-seq" structured syntax suffix in accordance with [RFC6838].

IANAは、[+ json-seq]構造化構文のサフィックスを[RFC6838]に従って登録しました。

Name: JSON Text Sequence

名前:JSONテキストシーケンス

      +suffix: +json-seq
        

References: [RFC7464], RFC 8091

参考資料:[RFC7464]、RFC 8091

Encoding considerations: See [RFC7464] Section 2.2

エンコードに関する考慮事項:[RFC7464]セクション2.2を参照

Fragment identifier considerations: The syntax and semantics of fragment identifiers specified for +json-seq SHOULD be as specified for "application/json-seq". (At publication of this document, there is no fragment identification syntax defined for "application/json-seq".)

フラグメント識別子の考慮事項:+ json-seqに指定されたフラグメント識別子の構文とセマンティクスは、「application / json-seq」に指定されたとおりである必要があります(SHOULD)。 (このドキュメントの公開時には、「application / json-seq」に対して定義されたフラグメント識別構文はありません。)

The syntax and semantics for fragment identifiers for a specific "xxx/yyy+json-seq" SHOULD be processed as follows:

特定の「xxx / yyy + json-seq」のフラグメント識別子の構文とセマンティクスは、次のように処理する必要があります。

For cases defined in +json-seq, where the fragment identifier resolves per the +json-seq rules, then process as specified in +json-seq.

+ json-seqで定義されているケースの場合、フラグメント識別子は+ json-seqルールに従って解決され、+ json-seqで指定されているように処理されます。

For cases defined in +json-seq, where the fragment identifier does not resolve per the +json-seq rules, then process as specified in "xxx/yyy+json-seq".

+ json-seqで定義されているケースで、フラグメント識別子が+ json-seqルールに従って解決されない場合は、「xxx / yyy + json-seq」で指定されているように処理します。

For cases not defined in +json-seq, then process as specified in "xxx/yyy+json-seq".

+ json-seqで定義されていない場合は、「xxx / yyy + json-seq」で指定されているように処理します。

Interoperability considerations: n/a

相互運用性に関する考慮事項:なし

Security considerations: See [RFC7464] Section 3

セキュリティに関する考慮事項:[RFC7464]セクション3を参照

Contact: Applications and Real-Time Area Discussion (art@ietf.org), or any IESG-designated successor.

連絡先:アプリケーションとリアルタイムエリアディスカッション(art@ietf.org)、またはIESG指定の後継者。

Author/Change controller: The Applications and Real-Time Area Working Group. IESG has change control over this registration.

作成者/変更コントローラ:アプリケーションおよびリアルタイムエリアワーキンググループ。 IESGは、この登録を変更管理します。

5. Security Considerations
5. セキュリティに関する考慮事項

All the security considerations of JSON text sequences [RFC7464] apply. They are as follows:

JSONテキストシーケンス[RFC7464]のセキュリティに関するすべての考慮事項が適用されます。それらは次のとおりです。

All the security considerations of JSON [RFC7159] apply. This format provides no cryptographic integrity protection of any kind.

JSON [RFC7159]のセキュリティに関する考慮事項がすべて適用されます。この形式では、いかなる種類の暗号化整合性保護も提供されません。

As usual, parsers must operate on input that is assumed to be untrusted. This means that parsers must fail gracefully in the face of malicious inputs.

いつものように、パーサーは信頼できないと想定される入力に対して動作する必要があります。これは、パーサーは悪意のある入力に直面しても適切に失敗する必要があることを意味します。

Note that incremental JSON text parsers can produce partial results and later indicate failure to parse the remainder of a text. A sequence parser that uses an incremental JSON text parser might treat a sequence like '<RS>"foo"<LF>456<LF><RS>' as a sequence of one element ("foo"), while a sequence parser that uses a non-incremental JSON text parser might treat the same sequence as being empty. This effect, and texts that fail to parse and are ignored, can be used to smuggle data past sequence parsers that don't warn about JSON text failures.

増分JSONテキストパーサーは部分的な結果を生成し、後でテキストの残りを解析できないことを示す可能性があることに注意してください。増分JSONテキストパーサーを使用するシーケンスパーサーは、 '<RS> "foo" <LF> 456 <LF> <RS>'のようなシーケンスを1つの要素のシーケンス( "foo")として扱い、非インクリメンタルJSONテキストパーサーを使用すると、同じシーケンスが空であると見なされる場合があります。この効果と、解析に失敗して無視されるテキストは、JSONテキストの失敗について警告しないシーケンスパーサーを通過してデータを密輸するために使用できます。

Repeated parsing and re-encoding of a JSON text sequence can result in the addition (or stripping) of trailing LF bytes from (to) individual sequence element JSON texts. This can break signature validation. JSON has no canonical form for JSON texts, therefore neither does the JSON text sequence format.

JSONテキストシーケンスの解析と再エンコードを繰り返すと、個々のシーケンス要素JSONテキストから(へ)末尾のLFバイトが追加(または削除)される可能性があります。これにより、署名の検証が壊れる可能性があります。 JSONには、JSONテキストの標準形式がないため、JSONテキストシーケンス形式もありません。

6. References
6. 参考文献
6.1. Normative References
6.1. 引用文献

[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, <http://www.rfc-editor.org/info/rfc2119>.

[RFC2119] Bradner、S。、「要件レベルを示すためにRFCで使用するキーワード」、BCP 14、RFC 2119、DOI 10.17487 / RFC2119、1997年3月、<http://www.rfc-editor.org/info/ rfc2119>。

[RFC6838] Freed, N., Klensin, J., and T. Hansen, "Media Type Specifications and Registration Procedures", BCP 13, RFC 6838, DOI 10.17487/RFC6838, January 2013, <http://www.rfc-editor.org/info/rfc6838>.

[RFC6838] Freed、N.、Klensin、J。、およびT. Hansen、「Media Type Specifications and Registration Procedures」、BCP 13、RFC 6838、DOI 10.17487 / RFC6838、2013年1月、<http://www.rfc- editor.org/info/rfc6838>。

[RFC7464] Williams, N., "JavaScript Object Notation (JSON) Text Sequences", RFC 7464, DOI 10.17487/RFC7464, February 2015, <http://www.rfc-editor.org/info/rfc7464>.

[RFC7464]ウィリアムズ、N。、「JavaScript Object Notation(JSON)Text Sequences」、RFC 7464、DOI 10.17487 / RFC7464、2015年2月、<http://www.rfc-editor.org/info/rfc7464>。

6.2. Informative References
6.2. 参考引用

[RFC6839] Hansen, T. and A. Melnikov, "Additional Media Type Structured Syntax Suffixes", RFC 6839, DOI 10.17487/RFC6839, January 2013, <http://www.rfc-editor.org/info/rfc6839>.

[RFC6839] Hansen、T。およびA. Melnikov、「Additional Media Type Structured Syntax Suffixes」、RFC 6839、DOI 10.17487 / RFC6839、2013年1月、<http://www.rfc-editor.org/info/rfc6839>。

[RFC7159] Bray, T., Ed., "The JavaScript Object Notation (JSON) Data Interchange Format", RFC 7159, DOI 10.17487/RFC7159, March 2014, <http://www.rfc-editor.org/info/rfc7159>.

[RFC7159]ブレイ、T。、編、「JavaScript Object Notation(JSON)データ交換フォーマット」、RFC 7159、DOI 10.17487 / RFC7159、2014年3月、<http://www.rfc-editor.org/info/ rfc7159>。

Acknowledgements

謝辞

Thanks for comments and suggestions provided by Ben Campbell, Allan Doyle, Warren Kumari, Sean Leonard, Alexey Melnikov, Brian Raymor, and Peter Yee.

ベンキャンベル、アランドイル、ウォーレンクマリ、ショーンレナード、アレクセイメルニコフ、ブライアンレイモア、ピーターイーが提供したコメントと提案に感謝します。

Author's Address

著者のアドレス

Erik Wilde CA Technologies

エリックワイルドCAテクノロジー

   Email: erik.wilde@dret.net
   URI:   http://dret.net/netdret/