Git Product home page Git Product logo

cpp-json-parser's Introduction

๐ŸŒˆ JSON Parser Library

Overview

The JSON Parser Library is a โšก fast and versatile C++ library designed for parsing and manipulating JSON data. Its multi-threaded capabilities make it efficient for handling large datasets, while the command-line interface (CLI) provides flexibility and ease of use.

โœจ Features

  • Multi-threaded JSON Parsing: Utilizes ๐Ÿš€ multi-threading to efficiently parse large JSON files.
  • Command-Line Interface (CLI): Offers a user-friendly CLI for performing various operations on JSON data.
  • Flexible JSON Tree Manipulation: Functions for counting nodes, displaying trees, filtering data, searching, and more.
  • Dynamic Library: Can be compiled as a shared library, making integration with other projects a breeze.

๐Ÿš€ Getting Started

Prerequisites

  • CMake (Version >= 3.10)
  • C++ Compiler (Supporting C++11)
  • nlohmann/json (Fetched automatically during build)

๐Ÿ› ๏ธ Build and Installation

mkdir build
cd build
cmake ..
make

๐Ÿš€ Usage

Example 1: Counting Nodes

#include "json_parser.h"

int main() {
    JSONParser parser("example.json");
    parser.parse({ "-n" });  // Count nodes
    return 0;
}

Example 2: Displaying Tree

#include "json_parser.h"

int main() {
    JSONParser parser("example.json");
    parser.parse({ "-d=node_name" });  // Display tree for a specific node
    return 0;
}

Example 3: Filtering Data

#include "json_parser.h"

int main() {
    JSONParser parser("example.json");
    parser.parse({ "-f=filter_expr" });  // Filter data based on expression
    return 0;
}

๐ŸŒ Command-Line Interface (CLI)

The library comes with a CLI for easy interaction. For example:

./JSONParserLib -n -d=node_name -f=filter_expr

๐Ÿค Contributing

  • If you'd like to contribute to this project, please follow the Contributing Guidelines.

๐Ÿ“„ License

This project is licensed under the MIT License.

๐Ÿ™Œ Acknowledgments

  • Special thanks to the contributors who made this project possible.
  • Inspired by nlohmann/json library.

๐Ÿ“ง Contact

For questions or support, please contact me

cpp-json-parser's People

Contributors

shitalborganve avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.