Implementation:SeleniumHQ Selenium JsonCpp Impl
| Knowledge Sources | |
|---|---|
| Domains | C_Plus_Plus, Vendored_Library |
| Last Updated | 2026-02-12 00:00 GMT |
Overview
Vendored amalgamated source for the JsonCpp JSON parsing library.
Description
Amalgamated (single-file) C++ source for JsonCpp, combining all implementation files into one compilation unit. Includes the JSON header via #include "json/json.h" and requires the JSON_IS_AMALGAMATION flag to be defined (set by the amalgamated header). Implements JSON parsing, value manipulation, and serialization. Licensed under MIT / Public Domain dual license (Baptiste Lepilleur and The JsonCpp Authors).
Usage
Compiled as part of the Selenium IE WebDriver native components to provide JSON handling for WebDriver protocol communication.
Code Reference
Source Location
- Repository: SeleniumHQ_Selenium
- File: third_party/cpp/json-cpp/src/jsoncpp.cpp
Key Details
// Amalgamated source - single compilation unit
#include "json/json.h"
#ifndef JSON_IS_AMALGAMATION
#error "Compile with -I PATH_TO_JSON_DIRECTORY"
#endif
// Implements:
// - Json::Value (value storage and manipulation)
// - Json::Reader / Json::CharReader (JSON parsing)
// - Json::Writer / Json::StreamWriter (JSON serialization)