Skip to content

Commit c0b16f2

Browse files
author
Andreas Göransson
committed
Fixed XML to JSON conversion.
Also fixed recursion problem with opt() methods.
1 parent e2d5e91 commit c0b16f2

File tree

97 files changed

+1097
-9834
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+1097
-9834
lines changed
Binary file not shown.

distribution/json4processing-0.1.6/examples/create_json_from_file/data/data.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "My data file"
2+
"name": "My data file",
33
"values": [
44
1, 2, 3, 4
55
]

distribution/json4processing-0.1.6/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h1>json4processing</h1>
4141
<div id="about">
4242
<h2>json4processing</h2>
4343
<p>
44-
A library by <a href="##yourLink##">Andreas Goransson</a> for the programming environment <a href="http://www.processing.org" target="_blank">processing</a>. Last update, 04/07/2013.
44+
A library by <a href="##yourLink##">Andreas Goransson</a> for the programming environment <a href="http://www.processing.org" target="_blank">processing</a>. Last update, 04/09/2013.
4545
</p>
4646
<p>
4747
Feel free to replace this paragraph with a description of the library. Contributed libraries are developed, documented, and maintained by members of the Processing community. Further directions are included with each library. For feedback and support, please post to the Discourse. We strongly encourage all libraries to be open source, but not all of them are.

distribution/json4processing-0.1.6/reference/allclasses-frame.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
22
<!-- NewPage -->
3-
<html lang="sv">
3+
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (version 1.7.0_09) on Sun Apr 07 21:00:07 CEST 2013 -->
5+
<!-- Generated by javadoc (version 1.7.0_06) on Tue Apr 09 16:31:04 CEST 2013 -->
66
<title>All Classes (Javadocs: json4processing)</title>
7-
<meta name="date" content="2013-04-07">
7+
<meta name="date" content="2013-04-09">
88
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
99
</head>
1010
<body>

distribution/json4processing-0.1.6/reference/allclasses-noframe.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
22
<!-- NewPage -->
3-
<html lang="sv">
3+
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (version 1.7.0_09) on Sun Apr 07 21:00:07 CEST 2013 -->
5+
<!-- Generated by javadoc (version 1.7.0_06) on Tue Apr 09 16:31:04 CEST 2013 -->
66
<title>All Classes (Javadocs: json4processing)</title>
7-
<meta name="date" content="2013-04-07">
7+
<meta name="date" content="2013-04-09">
88
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
99
</head>
1010
<body>

distribution/json4processing-0.1.6/reference/constant-values.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
22
<!-- NewPage -->
3-
<html lang="sv">
3+
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (version 1.7.0_09) on Sun Apr 07 21:00:07 CEST 2013 -->
5+
<!-- Generated by javadoc (version 1.7.0_06) on Tue Apr 09 16:31:04 CEST 2013 -->
66
<title>Constant Field Values (Javadocs: json4processing)</title>
7-
<meta name="date" content="2013-04-07">
7+
<meta name="date" content="2013-04-09">
88
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
99
</head>
1010
<body>

distribution/json4processing-0.1.6/reference/deprecated-list.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
22
<!-- NewPage -->
3-
<html lang="sv">
3+
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (version 1.7.0_09) on Sun Apr 07 21:00:07 CEST 2013 -->
5+
<!-- Generated by javadoc (version 1.7.0_06) on Tue Apr 09 16:31:04 CEST 2013 -->
66
<title>Deprecated List (Javadocs: json4processing)</title>
7-
<meta name="date" content="2013-04-07">
7+
<meta name="date" content="2013-04-09">
88
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
99
</head>
1010
<body>

distribution/json4processing-0.1.6/reference/help-doc.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
22
<!-- NewPage -->
3-
<html lang="sv">
3+
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (version 1.7.0_09) on Sun Apr 07 21:00:07 CEST 2013 -->
5+
<!-- Generated by javadoc (version 1.7.0_06) on Tue Apr 09 16:31:04 CEST 2013 -->
66
<title>API Help (Javadocs: json4processing)</title>
7-
<meta name="date" content="2013-04-07">
7+
<meta name="date" content="2013-04-09">
88
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
99
</head>
1010
<body>

distribution/json4processing-0.1.6/reference/index-all.html

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
22
<!-- NewPage -->
3-
<html lang="sv">
3+
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (version 1.7.0_09) on Sun Apr 07 21:00:07 CEST 2013 -->
5+
<!-- Generated by javadoc (version 1.7.0_06) on Tue Apr 09 16:31:04 CEST 2013 -->
66
<title>Index (Javadocs: json4processing)</title>
7-
<meta name="date" content="2013-04-07">
7+
<meta name="date" content="2013-04-09">
88
<link rel="stylesheet" type="text/css" href="./stylesheet.css" title="Style">
99
</head>
1010
<body>
@@ -65,6 +65,8 @@
6565
</a>
6666
<h2 class="title">A</h2>
6767
<dl>
68+
<dt><span class="strong"><a href="./org/json/JSON.html#accumulate(java.lang.String, java.lang.Object)">accumulate(String, Object)</a></span> - Method in class org.json.<a href="./org/json/JSON.html" title="class in org.json">JSON</a></dt>
69+
<dd>&nbsp;</dd>
6870
<dt><span class="strong"><a href="./org/json/JSONObj.html#accumulate(java.lang.String, java.lang.Object)">accumulate(String, Object)</a></span> - Method in class org.json.<a href="./org/json/JSONObj.html" title="class in org.json">JSONObj</a></dt>
6971
<dd>
7072
<div class="block">Accumulate values under a key.</div>
@@ -193,13 +195,7 @@ <h2 class="title">E</h2>
193195
</dd>
194196
<dt><span class="strong"><a href="./org/json/XML.html#escape(java.lang.String)">escape(String)</a></span> - Static method in class org.json.<a href="./org/json/XML.html" title="class in org.json">XML</a></dt>
195197
<dd>
196-
<div class="block">Replace special characters with XML escapes:
197-
198-
&amp; <small>(ampersand)</small> is replaced by &amp;amp;
199-
&lt; <small>(less than)</small> is replaced by &amp;lt;
200-
&gt; <small>(greater than)</small> is replaced by &amp;gt;
201-
&quot; <small>(double quote)</small> is replaced by &amp;quot;
202-
</div>
198+
<div class="block">Replace special characters with XML escapes:</div>
203199
</dd>
204200
</dl>
205201
<a name="_G_">
@@ -919,6 +915,8 @@ <h2 class="title">S</h2>
919915
<dl>
920916
<dt><span class="strong"><a href="./org/json/JSON.html#setArray(java.lang.String, org.json.JSON.JSONArray)">setArray(String, JSON.JSONArray)</a></span> - Method in class org.json.<a href="./org/json/JSON.html" title="class in org.json">JSON</a></dt>
921917
<dd>&nbsp;</dd>
918+
<dt><span class="strong"><a href="./org/json/JSON.html#setBoolean(java.lang.String, boolean)">setBoolean(String, boolean)</a></span> - Method in class org.json.<a href="./org/json/JSON.html" title="class in org.json">JSON</a></dt>
919+
<dd>&nbsp;</dd>
922920
<dt><span class="strong"><a href="./org/json/JSON.html#setDouble(java.lang.String, double)">setDouble(String, double)</a></span> - Method in class org.json.<a href="./org/json/JSON.html" title="class in org.json">JSON</a></dt>
923921
<dd>&nbsp;</dd>
924922
<dt><span class="strong"><a href="./org/json/JSON.html#setFloat(java.lang.String, float)">setFloat(String, float)</a></span> - Method in class org.json.<a href="./org/json/JSON.html" title="class in org.json">JSON</a></dt>
@@ -931,8 +929,6 @@ <h2 class="title">S</h2>
931929
<dd>&nbsp;</dd>
932930
<dt><span class="strong"><a href="./org/json/JSON.html#setString(java.lang.String, java.lang.String)">setString(String, String)</a></span> - Method in class org.json.<a href="./org/json/JSON.html" title="class in org.json">JSON</a></dt>
933931
<dd>&nbsp;</dd>
934-
<dt><span class="strong"><a href="./org/json/JSON.html#setString(java.lang.String, boolean)">setString(String, boolean)</a></span> - Method in class org.json.<a href="./org/json/JSON.html" title="class in org.json">JSON</a></dt>
935-
<dd>&nbsp;</dd>
936932
<dt><span class="strong"><a href="./org/json/XMLTokener.html#skipPast(java.lang.String)">skipPast(String)</a></span> - Method in class org.json.<a href="./org/json/XMLTokener.html" title="class in org.json">XMLTokener</a></dt>
937933
<dd>
938934
<div class="block">Skip characters until past the requested string.</div>
@@ -963,6 +959,11 @@ <h2 class="title">T</h2>
963959
<dd>
964960
<div class="block">Throw an exception if the object is a NaN or infinite number.</div>
965961
</dd>
962+
<dt><span class="strong"><a href="./org/json/XML.html#toJSON(java.lang.String)">toJSON(String)</a></span> - Static method in class org.json.<a href="./org/json/XML.html" title="class in org.json">XML</a></dt>
963+
<dd>
964+
<div class="block">Convert a well-formed (but not necessarily valid) XML string into a
965+
JSONObject.</div>
966+
</dd>
966967
<dt><span class="strong"><a href="./org/json/CDL.html#toJSONArray(java.lang.String)">toJSONArray(String)</a></span> - Static method in class org.json.<a href="./org/json/CDL.html" title="class in org.json">CDL</a></dt>
967968
<dd>
968969
<div class="block">Produce a JSONArray of JSONObjects from a comma delimited text string,
@@ -1025,11 +1026,6 @@ <h2 class="title">T</h2>
10251026
<div class="block">Convert a well-formed (but not necessarily valid) XML string into a
10261027
JSONObject using the JsonML transform.</div>
10271028
</dd>
1028-
<dt><span class="strong"><a href="./org/json/XML.html#toJSONObject(java.lang.String)">toJSONObject(String)</a></span> - Static method in class org.json.<a href="./org/json/XML.html" title="class in org.json">XML</a></dt>
1029-
<dd>
1030-
<div class="block">Convert a well-formed (but not necessarily valid) XML string into a
1031-
JSONObject.</div>
1032-
</dd>
10331029
<dt><span class="strong"><a href="./org/json/JSONString.html#toJSONString()">toJSONString()</a></span> - Method in interface org.json.<a href="./org/json/JSONString.html" title="interface in org.json">JSONString</a></dt>
10341030
<dd>
10351031
<div class="block">The <code>toJSONString</code> method allows a class to produce its own JSON

distribution/json4processing-0.1.6/reference/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
22
<!-- NewPage -->
3-
<html lang="sv">
3+
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc on Sun Apr 07 21:00:07 CEST 2013 -->
5+
<!-- Generated by javadoc on Tue Apr 09 16:31:04 CEST 2013 -->
66
<title>Javadocs: json4processing</title>
77
<script type="text/javascript">
88
targetPage = "" + window.location.search;

0 commit comments

Comments
 (0)