nsabovic / homebrew-json

:beer: Homebrew formula for JSON for Modern C++

Home Page:https://github.com/nlohmann/json

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSON for Modern C++ (Homebrew formula)

Build Status GitHub license

This Homebrew formula installs the header-only JSON for Modern C++ library to your system.

TL;DR: Just execute brew tap nlohmann/json and brew install nlohmann_json.

Usage

To use the JSON library, add

#include <json.hpp>

to your code and add

-I/usr/local/homebrew/Cellar/nlohmann_json/1.1.0/include

to your compiler flags.

Tests

With brew test nlohmann_json you can check if the formula is working properly. Note the formula needs to be installed before it can be tested.

About

:beer: Homebrew formula for JSON for Modern C++

https://github.com/nlohmann/json

License:Other


Languages

Language:Ruby 100.0%