Skip to content

A simple and lightweight JsonParser written in Java

Notifications You must be signed in to change notification settings

CommandJoo/JsonParsing

Repository files navigation

Json Parser

This Project is a simple JsonParser including a CLI written in Java

Functionality

/*
    The first parameter determines the amount of spaces to indent with
    The second paramter is for formatting the code
    The last parameter tells the parser whether to color the output or not
 */
JsonParser parser = new JsonParser(4, true, true);
/*
    To print the contents of a file use parser.printFile(file)
 */
parser.printFile("input.json");
/*
    If you only want to work with the json use
 */
parser.parseFile("input.json");

Libraries Used

JoptSimple for the Command Line Interface