libstud-json

[full]

JSON pull-parser/push-serializer library for C++

A portable, dependency-free, MIT-licensed JSON pull-parser/push-serializer library for C++.

Typical parser usage:

#include <iostream>

#include <libstud/json/parser.hxx>

int main ()
{
  using namespace stud::json;

  parser p (std::cin, "<stdin>");

  for (event e: p)
  {
    switch (e)
    {
    case event::begin_object:
      // ...
    case event::end_object:
      // ...
    case event::name:
      {
        const std::string& n (p.name ());
        // ...
      }
    case event::number:
      {
        int n (p.value<int> ());
        // ...
      }
    }
  }
}
... More
license MIT
project libstud
url github.com/libstud/libstud-json
topics C++JSONparsingserializationstreaming
1 Version
version 0.1.0
repository pkg:cppget.org/alpha
depends 0