This file is indexed.

/usr/share/doc/libjuce/apiref/classJSON.html is in libjuce-doc 4.3.0~repack-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JUCE: JSON Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JUCE
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="classJSON-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">JSON Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Contains static methods for converting JSON-formatted text to and from var objects.  
 <a href="classJSON.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a04abe8e9f60ea6ef8d54151947cafdb4"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classResult.html">Result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJSON.html#a04abe8e9f60ea6ef8d54151947cafdb4">parse</a> (const <a class="el" href="classString.html">String</a> &amp;text, <a class="el" href="classvar.html">var</a> &amp;parsedResult)</td></tr>
<tr class="memdesc:a04abe8e9f60ea6ef8d54151947cafdb4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Parses a string of JSON-formatted text, and returns a result code containing any parse errors.  <a href="#a04abe8e9f60ea6ef8d54151947cafdb4">More...</a><br /></td></tr>
<tr class="separator:a04abe8e9f60ea6ef8d54151947cafdb4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ef8e7d4c113ec4d4a3ecbb11670d019"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classvar.html">var</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJSON.html#a0ef8e7d4c113ec4d4a3ecbb11670d019">parse</a> (const <a class="el" href="classString.html">String</a> &amp;text)</td></tr>
<tr class="memdesc:a0ef8e7d4c113ec4d4a3ecbb11670d019"><td class="mdescLeft">&#160;</td><td class="mdescRight">Attempts to parse some JSON-formatted text, and returns the result as a var object.  <a href="#a0ef8e7d4c113ec4d4a3ecbb11670d019">More...</a><br /></td></tr>
<tr class="separator:a0ef8e7d4c113ec4d4a3ecbb11670d019"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8073c7491473c44b995de10b961f7b8"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classvar.html">var</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJSON.html#aa8073c7491473c44b995de10b961f7b8">parse</a> (const <a class="el" href="classFile.html">File</a> &amp;file)</td></tr>
<tr class="memdesc:aa8073c7491473c44b995de10b961f7b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Attempts to parse some JSON-formatted text from a file, and returns the result as a var object.  <a href="#aa8073c7491473c44b995de10b961f7b8">More...</a><br /></td></tr>
<tr class="separator:aa8073c7491473c44b995de10b961f7b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4c2776e3251bccd24e2ead35235777b"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classvar.html">var</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJSON.html#ac4c2776e3251bccd24e2ead35235777b">parse</a> (<a class="el" href="classInputStream.html">InputStream</a> &amp;input)</td></tr>
<tr class="memdesc:ac4c2776e3251bccd24e2ead35235777b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Attempts to parse some JSON-formatted text from a stream, and returns the result as a var object.  <a href="#ac4c2776e3251bccd24e2ead35235777b">More...</a><br /></td></tr>
<tr class="separator:ac4c2776e3251bccd24e2ead35235777b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2939ffbe0e0ee5a03eac1cd3f3d9a9d0"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classString.html">String</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJSON.html#a2939ffbe0e0ee5a03eac1cd3f3d9a9d0">toString</a> (const <a class="el" href="classvar.html">var</a> &amp;objectToFormat, bool allOnOneLine=false)</td></tr>
<tr class="memdesc:a2939ffbe0e0ee5a03eac1cd3f3d9a9d0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a string which contains a JSON-formatted representation of the var object.  <a href="#a2939ffbe0e0ee5a03eac1cd3f3d9a9d0">More...</a><br /></td></tr>
<tr class="separator:a2939ffbe0e0ee5a03eac1cd3f3d9a9d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae810f0f1951773a387acfc63c8f04a39"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classvar.html">var</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJSON.html#ae810f0f1951773a387acfc63c8f04a39">fromString</a> (<a class="el" href="classStringRef.html">StringRef</a>)</td></tr>
<tr class="memdesc:ae810f0f1951773a387acfc63c8f04a39"><td class="mdescLeft">&#160;</td><td class="mdescRight">Parses a string that was created with the <a class="el" href="classJSON.html#a2939ffbe0e0ee5a03eac1cd3f3d9a9d0" title="Returns a string which contains a JSON-formatted representation of the var object. ">toString()</a> method.  <a href="#ae810f0f1951773a387acfc63c8f04a39">More...</a><br /></td></tr>
<tr class="separator:ae810f0f1951773a387acfc63c8f04a39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9614ceea2dcd1e6c9f3bba86e273d024"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJSON.html#a9614ceea2dcd1e6c9f3bba86e273d024">writeToStream</a> (<a class="el" href="classOutputStream.html">OutputStream</a> &amp;output, const <a class="el" href="classvar.html">var</a> &amp;objectToFormat, bool allOnOneLine=false)</td></tr>
<tr class="memdesc:a9614ceea2dcd1e6c9f3bba86e273d024"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes a JSON-formatted representation of the var object to the given stream.  <a href="#a9614ceea2dcd1e6c9f3bba86e273d024">More...</a><br /></td></tr>
<tr class="separator:a9614ceea2dcd1e6c9f3bba86e273d024"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2bcb2faacb867a91a841a6d8f137f2a"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classString.html">String</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJSON.html#ab2bcb2faacb867a91a841a6d8f137f2a">escapeString</a> (<a class="el" href="classStringRef.html">StringRef</a>)</td></tr>
<tr class="memdesc:ab2bcb2faacb867a91a841a6d8f137f2a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a version of a string with any extended characters escaped.  <a href="#ab2bcb2faacb867a91a841a6d8f137f2a">More...</a><br /></td></tr>
<tr class="separator:ab2bcb2faacb867a91a841a6d8f137f2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada4d75848bea4b8d988d670996d89ab1"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classResult.html">Result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJSON.html#ada4d75848bea4b8d988d670996d89ab1">parseQuotedString</a> (<a class="el" href="classString.html#a32e28d7fc3a4900c319884191d90dbf0">String::CharPointerType</a> &amp;text, <a class="el" href="classvar.html">var</a> &amp;result)</td></tr>
<tr class="memdesc:ada4d75848bea4b8d988d670996d89ab1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Parses a quoted string-literal in <a class="el" href="classJSON.html" title="Contains static methods for converting JSON-formatted text to and from var objects. ">JSON</a> format, returning the un-escaped result in the result parameter, and an error message in case the content was illegal.  <a href="#ada4d75848bea4b8d988d670996d89ab1">More...</a><br /></td></tr>
<tr class="separator:ada4d75848bea4b8d988d670996d89ab1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Contains static methods for converting JSON-formatted text to and from var objects. </p>
<p>The var class is structurally compatible with JSON-formatted data, so these functions allow you to parse <a class="el" href="classJSON.html" title="Contains static methods for converting JSON-formatted text to and from var objects. ">JSON</a> into a var object, and to convert a var object to JSON-formatted text.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classvar.html" title="A variant class, that can be used to hold a range of primitive values. ">var</a> </dd></dl>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a04abe8e9f60ea6ef8d54151947cafdb4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a04abe8e9f60ea6ef8d54151947cafdb4">&sect;&nbsp;</a></span>parse() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classResult.html">Result</a> JSON::parse </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classString.html">String</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classvar.html">var</a> &amp;&#160;</td>
          <td class="paramname"><em>parsedResult</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Parses a string of JSON-formatted text, and returns a result code containing any parse errors. </p>
<p>This will return the parsed structure in the parsedResult parameter, and will return a <a class="el" href="classResult.html" title="Represents the &#39;success&#39; or &#39;failure&#39; of an operation, and holds an associated error message to descr...">Result</a> object to indicate whether parsing was successful, and if not, it will contain an error message.</p>
<p>If you're not interested in the error message, you can use one of the other shortcut parse methods, which simply return a <a class="el" href="classvar.html" title="A variant class, that can be used to hold a range of primitive values. ">var()</a> if the parsing fails.</p>
<p>Note that this will only parse valid <a class="el" href="classJSON.html" title="Contains static methods for converting JSON-formatted text to and from var objects. ">JSON</a>, which means that the item given must be either an object or an array definition. If you want to also be able to parse any kind of primitive <a class="el" href="classJSON.html" title="Contains static methods for converting JSON-formatted text to and from var objects. ">JSON</a> object, use the <a class="el" href="classJSON.html#ae810f0f1951773a387acfc63c8f04a39" title="Parses a string that was created with the toString() method. ">fromString()</a> method. </p>

</div>
</div>
<a id="a0ef8e7d4c113ec4d4a3ecbb11670d019"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0ef8e7d4c113ec4d4a3ecbb11670d019">&sect;&nbsp;</a></span>parse() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classvar.html">var</a> JSON::parse </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classString.html">String</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Attempts to parse some JSON-formatted text, and returns the result as a var object. </p>
<p>If the parsing fails, this simply returns <a class="el" href="classvar.html" title="A variant class, that can be used to hold a range of primitive values. ">var()</a> - if you need to find out more detail about the parse error, use the alternative <a class="el" href="classJSON.html#a04abe8e9f60ea6ef8d54151947cafdb4" title="Parses a string of JSON-formatted text, and returns a result code containing any parse errors...">parse()</a> method which returns a <a class="el" href="classResult.html" title="Represents the &#39;success&#39; or &#39;failure&#39; of an operation, and holds an associated error message to descr...">Result</a>.</p>
<p>Note that this will only parse valid <a class="el" href="classJSON.html" title="Contains static methods for converting JSON-formatted text to and from var objects. ">JSON</a>, which means that the item given must be either an object or an array definition. If you want to also be able to parse any kind of primitive <a class="el" href="classJSON.html" title="Contains static methods for converting JSON-formatted text to and from var objects. ">JSON</a> object, use the <a class="el" href="classJSON.html#ae810f0f1951773a387acfc63c8f04a39" title="Parses a string that was created with the toString() method. ">fromString()</a> method. </p>

</div>
</div>
<a id="aa8073c7491473c44b995de10b961f7b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa8073c7491473c44b995de10b961f7b8">&sect;&nbsp;</a></span>parse() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classvar.html">var</a> JSON::parse </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classFile.html">File</a> &amp;&#160;</td>
          <td class="paramname"><em>file</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Attempts to parse some JSON-formatted text from a file, and returns the result as a var object. </p>
<p>Note that this is just a short-cut for reading the entire file into a string and parsing the result.</p>
<p>If the parsing fails, this simply returns <a class="el" href="classvar.html" title="A variant class, that can be used to hold a range of primitive values. ">var()</a> - if you need to find out more detail about the parse error, use the alternative <a class="el" href="classJSON.html#a04abe8e9f60ea6ef8d54151947cafdb4" title="Parses a string of JSON-formatted text, and returns a result code containing any parse errors...">parse()</a> method which returns a <a class="el" href="classResult.html" title="Represents the &#39;success&#39; or &#39;failure&#39; of an operation, and holds an associated error message to descr...">Result</a>. </p>

</div>
</div>
<a id="ac4c2776e3251bccd24e2ead35235777b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac4c2776e3251bccd24e2ead35235777b">&sect;&nbsp;</a></span>parse() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classvar.html">var</a> JSON::parse </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classInputStream.html">InputStream</a> &amp;&#160;</td>
          <td class="paramname"><em>input</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Attempts to parse some JSON-formatted text from a stream, and returns the result as a var object. </p>
<p>Note that this is just a short-cut for reading the entire stream into a string and parsing the result.</p>
<p>If the parsing fails, this simply returns <a class="el" href="classvar.html" title="A variant class, that can be used to hold a range of primitive values. ">var()</a> - if you need to find out more detail about the parse error, use the alternative <a class="el" href="classJSON.html#a04abe8e9f60ea6ef8d54151947cafdb4" title="Parses a string of JSON-formatted text, and returns a result code containing any parse errors...">parse()</a> method which returns a <a class="el" href="classResult.html" title="Represents the &#39;success&#39; or &#39;failure&#39; of an operation, and holds an associated error message to descr...">Result</a>. </p>

</div>
</div>
<a id="a2939ffbe0e0ee5a03eac1cd3f3d9a9d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2939ffbe0e0ee5a03eac1cd3f3d9a9d0">&sect;&nbsp;</a></span>toString()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classString.html">String</a> JSON::toString </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classvar.html">var</a> &amp;&#160;</td>
          <td class="paramname"><em>objectToFormat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>allOnOneLine</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a string which contains a JSON-formatted representation of the var object. </p>
<p>If allOnOneLine is true, the result will be compacted into a single line of text with no carriage-returns. If false, it will be laid-out in a more human-readable format. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classJSON.html#a9614ceea2dcd1e6c9f3bba86e273d024" title="Writes a JSON-formatted representation of the var object to the given stream. ">writeToStream</a> </dd></dl>

</div>
</div>
<a id="ae810f0f1951773a387acfc63c8f04a39"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae810f0f1951773a387acfc63c8f04a39">&sect;&nbsp;</a></span>fromString()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classvar.html">var</a> JSON::fromString </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classStringRef.html">StringRef</a>&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Parses a string that was created with the <a class="el" href="classJSON.html#a2939ffbe0e0ee5a03eac1cd3f3d9a9d0" title="Returns a string which contains a JSON-formatted representation of the var object. ">toString()</a> method. </p>
<p>This is slightly different to the <a class="el" href="classJSON.html#a04abe8e9f60ea6ef8d54151947cafdb4" title="Parses a string of JSON-formatted text, and returns a result code containing any parse errors...">parse()</a> methods because they will reject primitive values and only accept array or object definitions, whereas this method will handle either. </p>

</div>
</div>
<a id="a9614ceea2dcd1e6c9f3bba86e273d024"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9614ceea2dcd1e6c9f3bba86e273d024">&sect;&nbsp;</a></span>writeToStream()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void JSON::writeToStream </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classOutputStream.html">OutputStream</a> &amp;&#160;</td>
          <td class="paramname"><em>output</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classvar.html">var</a> &amp;&#160;</td>
          <td class="paramname"><em>objectToFormat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>allOnOneLine</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Writes a JSON-formatted representation of the var object to the given stream. </p>
<p>If allOnOneLine is true, the result will be compacted into a single line of text with no carriage-returns. If false, it will be laid-out in a more human-readable format. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classJSON.html#a2939ffbe0e0ee5a03eac1cd3f3d9a9d0" title="Returns a string which contains a JSON-formatted representation of the var object. ">toString</a> </dd></dl>

</div>
</div>
<a id="ab2bcb2faacb867a91a841a6d8f137f2a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab2bcb2faacb867a91a841a6d8f137f2a">&sect;&nbsp;</a></span>escapeString()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classString.html">String</a> JSON::escapeString </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classStringRef.html">StringRef</a>&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a version of a string with any extended characters escaped. </p>

</div>
</div>
<a id="ada4d75848bea4b8d988d670996d89ab1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ada4d75848bea4b8d988d670996d89ab1">&sect;&nbsp;</a></span>parseQuotedString()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classResult.html">Result</a> JSON::parseQuotedString </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classString.html#a32e28d7fc3a4900c319884191d90dbf0">String::CharPointerType</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classvar.html">var</a> &amp;&#160;</td>
          <td class="paramname"><em>result</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Parses a quoted string-literal in <a class="el" href="classJSON.html" title="Contains static methods for converting JSON-formatted text to and from var objects. ">JSON</a> format, returning the un-escaped result in the result parameter, and an error message in case the content was illegal. </p>
<p>This advances the text parameter, leaving it positioned after the closing quote. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="juce__JSON_8h.html">juce_JSON.h</a></li>
</ul>
</div><!-- contents -->
<hr class="footer"/>
<address class="footer"><small>All content &copy ROLI Ltd.</small></address><br/>
</body>
</html>