FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
processing-docs/content/api_en/JSONArray_getIntArray.xml at master · processing/processing-docs · GitHub
processing
processing-docs
Repository navigation
Code
Issues
3
(3)
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
processing-docs
/
content
/
api_en
/
JSONArray_getIntArray.xml
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
52 lines (39 loc) · 864 Bytes
Breadcrumbs
processing-docs
/
content
/
api_en
/
JSONArray_getIntArray.xml
Copy path
File metadata and controls
executable file
·
52 lines (39 loc) · 864 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
<?
xml
version
=
"
1.0
"
encoding
=
"
UTF-8
"
standalone
=
"
yes
"
?>
<
root
>
<
name
>getIntArray()</
name
>
<
category
>JSONArray</
category
>
<
subcategory
>Method</
subcategory
>
<
type
>method</
type
>
<
example
>
<
image
></
image
>
<
code
>
<![CDATA[
// The following short JSON file called "data.json" is parsed
// in the code below. It must be in the project's "data" folder.
//
// [ 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144 ]
JSONArray json;
void setup() {
json = loadJSONArray("data.json");
int[] values = json.getIntArray();
println(values);
}
// Sketch prints:
// [0] 0
// [1] 1
// [2] 1
// [3] 2
// [4] 3
// [5] 5
// [6] 8
// [7] 13
// [8] 21
// [9] 34
// [10] 55
// [11] 89
// [12] 144
]]>
</
code
>
</
example
>
<
description
>
<![CDATA[
Returns the entire <b>JSONArray</b> as an array of ints. (All values in the array must be of the int type.)
]]>
</
description
>
</
root
>
Back
|
FazBrowse Home
|
New Git URL