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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277
|
<pre>Internet Engineering Task Force (IETF) E. Wilde
Request for Comments: 8091 CA Technologies
Category: Informational February 2017
ISSN: 2070-1721
<span class="h1">A Media Type Structured Syntax Suffix for JSON Text Sequences</span>
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.
Status of This Memo
This document is not an Internet Standards Track specification; it is
published for informational purposes.
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 <a href="./rfc7841#section-2">Section 2 of RFC 7841</a>.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
<a href="http://www.rfc-editor.org/info/rfc8091">http://www.rfc-editor.org/info/rfc8091</a>.
Copyright Notice
Copyright (c) 2017 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
Provisions Relating to IETF Documents
(<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) 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.
<span class="grey">Wilde Informational [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc8091">RFC 8091</a> JSON Text Sequences Structured Syntax Suffix February 2017</span>
Table of Contents
<a href="#section-1">1</a>. Introduction . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-2">2</a>. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-3">3</a>. The "+json-seq" Structured Syntax Suffix . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-4">4</a>. IANA Considerations . . . . . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-5">5</a>. Security Considerations . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-6">6</a>. References . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-6.1">6.1</a>. Normative References . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-6.2">6.2</a>. Informative References . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
Author's Address . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
Media type structured syntax suffixes [<a href="./rfc6838" title=""Media Type Specifications and Registration Procedures"">RFC6838</a>] 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 [<a href="./rfc6839" title=""Additional Media Type Structured Syntax Suffixes"">RFC6839</a>], including "+json", for the widely popular JSON
format [<a href="./rfc7159" title=""The JavaScript Object Notation (JSON) Data Interchange Format"">RFC7159</a>].
JSON text sequences [<a href="./rfc7464" title=""JavaScript Object Notation (JSON) Text Sequences"">RFC7464</a>] 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".
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Terminology</span>
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 [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. The "+json-seq" Structured Syntax Suffix</span>
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.
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.
<span class="grey">Wilde Informational [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc8091">RFC 8091</a> JSON Text Sequences Structured Syntax Suffix February 2017</span>
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. IANA Considerations</span>
Structured Syntax Suffixes are registered within the "Structured
Syntax Suffix Registry" maintained at
<<a href="https://www.iana.org/assignments/media-type-structured-suffix">https://www.iana.org/assignments/media-type-structured-suffix</a>>.
IANA has registered the "+json-seq" structured syntax suffix in
accordance with [<a href="./rfc6838" title=""Media Type Specifications and Registration Procedures"">RFC6838</a>].
Name: JSON Text Sequence
+suffix: +json-seq
References: [<a href="./rfc7464" title=""JavaScript Object Notation (JSON) Text Sequences"">RFC7464</a>], <a href="./rfc8091">RFC 8091</a>
Encoding considerations: See <a href="./rfc7464#section-2.2">[RFC7464] Section 2.2</a>
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".)
The syntax and semantics for fragment identifiers for a
specific "xxx/yyy+json-seq" SHOULD be processed as follows:
For cases defined in +json-seq, where the fragment
identifier resolves per the +json-seq rules, then process as
specified in +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".
For cases not defined in +json-seq, then process as
specified in "xxx/yyy+json-seq".
Interoperability considerations: n/a
Security considerations: See <a href="./rfc7464#section-3">[RFC7464] Section 3</a>
Contact: Applications and Real-Time Area Discussion
(art@ietf.org), or any IESG-designated successor.
Author/Change controller: The Applications and Real-Time Area
Working Group. IESG has change control over this registration.
<span class="grey">Wilde Informational [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc8091">RFC 8091</a> JSON Text Sequences Structured Syntax Suffix February 2017</span>
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Security Considerations</span>
All the security considerations of JSON text sequences [<a href="./rfc7464" title=""JavaScript Object Notation (JSON) Text Sequences"">RFC7464</a>]
apply. They are as follows:
All the security considerations of JSON [<a href="./rfc7159" title=""The JavaScript Object Notation (JSON) Data Interchange Format"">RFC7159</a>] apply. This format
provides no cryptographic integrity protection of any kind.
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.
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.
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. References</span>
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a>. Normative References</span>
[<a id="ref-RFC2119">RFC2119</a>] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>,
DOI 10.17487/RFC2119, March 1997,
<<a href="http://www.rfc-editor.org/info/rfc2119">http://www.rfc-editor.org/info/rfc2119</a>>.
[<a id="ref-RFC6838">RFC6838</a>] Freed, N., Klensin, J., and T. Hansen, "Media Type
Specifications and Registration Procedures", <a href="https://www.rfc-editor.org/bcp/bcp13">BCP 13</a>,
<a href="./rfc6838">RFC 6838</a>, DOI 10.17487/RFC6838, January 2013,
<<a href="http://www.rfc-editor.org/info/rfc6838">http://www.rfc-editor.org/info/rfc6838</a>>.
[<a id="ref-RFC7464">RFC7464</a>] Williams, N., "JavaScript Object Notation (JSON) Text
Sequences", <a href="./rfc7464">RFC 7464</a>, DOI 10.17487/RFC7464, February 2015,
<<a href="http://www.rfc-editor.org/info/rfc7464">http://www.rfc-editor.org/info/rfc7464</a>>.
<span class="grey">Wilde Informational [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc8091">RFC 8091</a> JSON Text Sequences Structured Syntax Suffix February 2017</span>
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a>. Informative References</span>
[<a id="ref-RFC6839">RFC6839</a>] Hansen, T. and A. Melnikov, "Additional Media Type
Structured Syntax Suffixes", <a href="./rfc6839">RFC 6839</a>,
DOI 10.17487/RFC6839, January 2013,
<<a href="http://www.rfc-editor.org/info/rfc6839">http://www.rfc-editor.org/info/rfc6839</a>>.
[<a id="ref-RFC7159">RFC7159</a>] Bray, T., Ed., "The JavaScript Object Notation (JSON) Data
Interchange Format", <a href="./rfc7159">RFC 7159</a>, DOI 10.17487/RFC7159, March
2014, <<a href="http://www.rfc-editor.org/info/rfc7159">http://www.rfc-editor.org/info/rfc7159</a>>.
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
Email: erik.wilde@dret.net
URI: <a href="http://dret.net/netdret/">http://dret.net/netdret/</a>
Wilde Informational [Page 5]
</pre>
|