// SPDX-FileCopyrightText: 2002-2025 PCSX2 Dev Team // SPDX-License-Identifier: GPL-3.0+ #pragma once #include "rapidjson/document.h" // Container for a JSON value. This exists solely so that we can forward declare // it to avoid pulling in rapidjson for the entire debugger. class JsonValueWrapper { public: JsonValueWrapper( rapidjson::Value& value, rapidjson::MemoryPoolAllocator& allocator) : m_value(value) , m_allocator(allocator) { } rapidjson::Value& value() { return m_value; } const rapidjson::Value& value() const { return m_value; } rapidjson::MemoryPoolAllocator& allocator() { return m_allocator; } private: rapidjson::Value& m_value; rapidjson::MemoryPoolAllocator& m_allocator; };