]> Cypherpunks repositories - gostls13.git/commitdiff
doc: add json tokenizer to go1.5.html
authorRob Pike <r@golang.org>
Tue, 28 Jul 2015 23:43:32 +0000 (09:43 +1000)
committerRob Pike <r@golang.org>
Wed, 29 Jul 2015 06:10:27 +0000 (06:10 +0000)
Change-Id: I45d92fed757fa1866d5b80e53ed1af6712fa6741
Reviewed-on: https://go-review.googlesource.com/12782
Reviewed-by: Russ Cox <rsc@golang.org>
doc/go1.5.html

index 9dc289e639c412010e358f6ef63d54f6fcbeab20..4e173d130a9cdeda4938e1179174e74a431f39c0 100644 (file)
@@ -931,6 +931,16 @@ if a JSON value is not appropriate for the target variable or component
 to which it is being unmarshaled.
 </li>
 
+<li>
+The <code>encoding/json</code>'s
+<a href="/pkg/encoding/json/#Decoder"><code>Decoder</code></a>
+type has a new method that provides a streaming interface for decoding
+a JSON document:
+<a href="/pkg/encoding/json/#Decoder.Token"><code>Token</code></a>.
+It also interoperates with the existing functionality of <code>Decode</code>,
+which will continue a decode operation already started with <code>Decoder.Token</code>.
+</li>
+
 <li>
 The <a href="/pkg/flag/"><code>flag</code></a> package
 has a new function, <a href="/pkg/flag/#UnquoteUsage"><code>UnquoteUsage</code></a>,