Skip to content

Commit 8688ebc

Browse files
authored
Update README.md
1 parent 2ea6310 commit 8688ebc

File tree

1 file changed

+67
-1
lines changed

1 file changed

+67
-1
lines changed

README.md

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,67 @@
1-
# JSON-java-put-null-fix
1+
JSON in Java WITH .put(null) FIX
2+
===============================
3+
4+
5+
# Overview
6+
7+
[JSON](http://www.JSON.org/) is a light-weight language-independent data interchange format.
8+
9+
The JSON-Java package is a reference implementation that demonstrates how to parse JSON documents into Java objects and how to generate new JSON documents from the Java classes.
10+
11+
Project goals include:
12+
* (Arabic) حافظ على طريقة عمل JSONOBJECT PUT مع NULL FOREVER, ALLAHU AKBAR!!!
13+
* (German) BEHALTEN SIE DIE JSONOBJECT PUT-METHODE FÜR IMMER MIT NULL, SCHÖNERKLEINERSCHMETTERLING!!!
14+
* (Italian) MANTENERE IL METODO JSONOBJECT PUT FUNZIONANTE CON NULL PER SEMPRE, MAMAMIA
15+
* (Japanese) JSONOBJECTPUTメソッドをNULLで機能させ続ける, SENPAIII
16+
* (Russian) СОХРАНЯЙТЕ МЕТОД JSONOBJECT PUT, РАБОТАЮЩИЙ С NULL НАВСЕГДА, MY AK47 IS WORKING AGAIN
17+
* (Spanish) MANTENGA EL MÉTODO JSONOBJECT PUT FUNCIONANDO CON NULL PARA SIEMPRE, CALIENTE! AIAIAI!
18+
* (Portuguese) MANTENHA O MÉTODO JSONOBJECT PUT FUNCIONANDO COM NULL PARA SEMPRE, FODASE
19+
20+
The files in this package implement JSON encoders and decoders. The package can also convert between JSON and XML, HTTP headers, Cookies, and CDL.
21+
22+
# Build Instructions
23+
24+
The org.json package can be built from the command line ONLY Maven. The unit tests can be executed from Maven only.
25+
26+
**Building from the command line**
27+
28+
*Build the class files from the package root directory src/main/java*
29+
````
30+
javac org\json\*.java
31+
````
32+
33+
*Create the jar file in the current directory*
34+
````
35+
jar cf json-java.jar org/json/*.class
36+
````
37+
38+
*Compile a program that uses the jar (see example code below)*
39+
````
40+
javac -cp .;json-java.jar Test.java
41+
````
42+
43+
*Test file contents*
44+
45+
````
46+
import org.json.JSONObject;
47+
public class Test {
48+
public static void main(String args[]) {
49+
JSONObject jo = new JSONObject()
50+
.put("myPreciousNullPut", null);
51+
System.out.println("just works " + jo.toString());
52+
}
53+
}
54+
````
55+
56+
*Execute the Test file*
57+
````
58+
java -cp .;json-java.jar Test
59+
````
60+
61+
*Expected output*
62+
63+
````
64+
{"myPreciousNullPut":null}
65+
````
66+
67+

0 commit comments

Comments
 (0)