2 min read
JSON Parser

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:

  1. Clone the repsository
git clone https://github.com/wildandhya/json-parser
  1. Install Depedency
go mod tidy
  1. 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:

  1. Run the Program

Run the executable and pass a JSON file path as an argument:

./jp file path/to/yourfile.json

References

Coding Challenge