talk-data.com talk-data.com

Meetup talk 2024-11-13 at 17:30

Express your expectations. A fast, compliant JSON pull parser for writing robust applications

Description

There are, by now, several well-established C++ JSON libraries. C++ developers can choose between DOM parsers, SAX parsers, and pull parsers. DOM parsers are by design slow and use a lot of memory, SAX parsers are clumsy to use, so pull parsers are the way to go. Our open-source JSON parser fills this gap between the existing parser libraries. It is a fully validating, fast, pull parser with O(1) memory usage. The key innovation lies in our API design. Unlike other parsers that solely validate JSON, ours enforces semantical constraints, requiring developers to define specific structures. This results in automatic error handling and simplifies code. You can also parse directly into your own data structures without any extra copies. This talk showcases our JSON parser API in action, comparing it with established counterparts. Additionally, we demonstrate elegant generic programming C++ techniques, making it accessible to both beginners and intermediate developers.