Provides extra information to routines used for extraction and serialization.
const std::optional< jsonv::version > & version() const
Get the version this context was created with.
context()
Create a new instance using the default formats (formats::global).
context(jsonv::formats fmt, std::optional< jsonv::version > ver=std::nullopt, const void *userdata=nullptr)
Create a new instance using the given fmt, ver and userdata.
const void * user_data() const
Get a pointer to arbitrary user data.