A simple JSON parser written in Go. This project implements a lexer and parser for parsing JSON data. It reads a JSON file, parses it, and prints the JSON content as a string.
Installation
To install the JSON parser, you need to have Go installed on your machine. Then, you can use the following command to clone the repository:
- Clone the repsository
git clone https://github.com/wildandhya/json-parser
- Install Depedency
go mod tidy
- Build the project
go build main.go
Usage
Once you have the executable built, you can use it to parse JSON files. Here’s an example of how to use the JSON parser from the command line:
- Run the Program
Run the executable and pass a JSON file path as an argument:
./jp file path/to/yourfile.json