libjson is a JSON parser and printer that is fully compliant with the JSON spec. The parser is efficient and interruptible with a simple and flexible API. It also optionally supports extensions like C-style comments or Python/YAML style comments, and for security allows the user to set a limit on the number of nested structures and the parse buffer. The library plugs easily into any model since it doesn't include any object model, and plugs easily in any project's memory management since the memory functions can be redefined.