#pragma once #include #include namespace smartbotic::db { // Parses a JSON document using yyjson (read-only DOM) and materialises an // nlohmann::json tree from it. Drop-in replacement for nlohmann::json::parse // at hot paths where parse speed matters but we still want nlohmann semantics // downstream. Throws nlohmann::json::parse_error on malformed input so existing // catch sites keep working. nlohmann::json parse_to_nlohmann(std::string_view bytes); nlohmann::json parse_to_nlohmann(const char* data, size_t length); } // namespace smartbotic::db