json: add lots of C++ accessors