You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li><p>If <code>event-type</code> is <code>'json-structure</code>, then <code>obj</code> can be:</p>
108
108
<ul>
109
109
<li><p><code>'array-start</code> symbol denoting that an array should be constructed.</p></li>
110
-
<li><p><code>'array-end</code> symbol denoting that the construction of thec array for which the last <code>'array-start</code> that was generated and not closed is finished.</p></li>
110
+
<li><p><code>'array-end</code> symbol denoting that the construction of the array for which the last <code>'array-start</code> that was generated and not closed is finished.</p></li>
111
111
<li><p><code>'object-start</code> symbol denoting that an object should be constructed. The object's key-value pairs are emitted in sequence like those in a property list (plist). That is the generation of a key is always followed by the generation of a value. Otherwise, the JSON would be invalid and <code>json-generator-read</code> would raise error.</li>
112
112
<li><p><code>'object-end</code> symbol denoting that the construction of the object for which the last <code>object-start</code> was generated and not closed is finished.</p></li>
<p>Otherwise, if <code>TOKENS</code> describes valid JSON text, the generator returned by <code>json-generator-read</code> must yield an end-of-file object in two situations:</p>
124
124
<ul>
125
125
<li>The first time <code>TOKENS</code> is called, it returns an object that is a boolean, a number, a string or the symbol <code>'null</code>.</li>
126
-
<li>The first time <code>TOKENS</code> is called, it returns a symbol that is not the symbol <code>'null</code>. <code>json-generator-read</code> expects the symbols described in <code>json-tokens</code>. When the underlying JSON text is valid, it should be the symbol starting a structure: <code>'object-start</code> or <code>'array-start</code>. The end-of-file object is generated when when the structure is finished.</li>
126
+
<li>The first time <code>TOKENS</code> is called, it returns a symbol that is not the symbol <code>'null</code>. <code>json-generator-read</code> expects the symbols described in procedure <code>json-tokens</code>. When the underlying JSON text is valid, it should be the symbol starting a structure: <code>'object-start</code> or <code>'array-start</code>. The end-of-file object is generated when when that structure is finished.</li>
127
127
</ul>
128
128
129
129
<p>Otherwise said, the generator returned by <code>json-generator-read</code> will parse at most one JSON value or one top-level structure. If <code>TOKENS</code> is not finished, like it is the cases of <ahref="http://jsonlines.org/">JSON lines</a>, the user must call again <code>json-generator-read</code> with the same <code>TOKENS</code>.</p>
0 commit comments