From d14c7b91274f6468097873f2a9be2041b0ae5f28 Mon Sep 17 00:00:00 2001 From: stleary Date: Sat, 18 Jul 2020 13:02:51 -0500 Subject: [PATCH] formatting --- README.md | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index c99ba12..5e2a146 100644 --- a/README.md +++ b/README.md @@ -22,28 +22,28 @@ package. The package compiles on Java 1.6-1.8. -** Recently [#515 Merge tests and pom and code](https://github.com/stleary/JSON-java/pull/515), the structure of the project changed from a flat directory containing all of the Java files to a directory structure that includes unit tests and several build tools to build the project jar and run the unit tests. If you have difficulty using the new structure, please open an issue so we can work through it. +**Recently [#515 Merge tests and pom and code](https://github.com/stleary/JSON-java/pull/515), the structure of the project changed from a flat directory containing all of the Java files to a directory structure that includes unit tests and several build tools to build the project jar and run the unit tests. If you have difficulty using the new structure, please open an issue so we can work through it. -** Building from the command line +**Building from the command line * Build the class files from the package root directory src/main/java * * javac org\json\*.java -* Build the jar file +*Build the jar file * * jar cf json-java.jar org/json/*.class -* Compile a program that uses the jar (see below example code) +*Compile a program that uses the jar (see below example code) * * javac -cp .;json-java.jar Test.java -* Excecute the Test file +*Excecute the Test file * * java -cp .;json-java.jar Test -* Test file contents +*Test file contents ```` import org.json.JSONObject; @@ -62,11 +62,15 @@ public class Test { ```` -You can only run the unit tests with Maven or Gradlew. - +*You can only run the unit tests with Maven or Gradlew. + +* * mvn clean test + +* * gradlew clean test +**Files **JSONObject.java**: The `JSONObject` can parse text from a `String` or a `JSONTokener` to produce a map-like object. The object provides methods for manipulating its