Skip to content

Commit 35d23e5

Browse files
committed
README
1 parent 1d2818f commit 35d23e5

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Json Parser
2+
This Project is a simple JsonParser including a CLI written in Java
3+
4+
### Functionality
5+
```java
6+
/*
7+
The first parameter determines the amount of spaces to indent with
8+
The second paramter is for formatting the code
9+
The last parameter tells the parser whether to color the output or not
10+
*/
11+
JsonParser parser = new JsonParser(4, true, true);
12+
/*
13+
To print the contents of a file use parser.printFile(file)
14+
*/
15+
parser.printFile("input.json");
16+
/*
17+
If you only want to work with the json use
18+
*/
19+
parser.parseFile("input.json");
20+
```
21+
22+
### Libraries Used
23+
[JoptSimple](https://github.com/jopt-simple/jopt-simple) for the Command Line Interface

0 commit comments

Comments
 (0)