Source
stdlib/parsers/json/null.hpp
1
// Copyright (c) 2026 BigBrain LLC. MIT-licensed (see LICENSE).2
// Original work; see ACKNOWLEDGMENTS.md for the open-source ideas we build upon.3
#pragma once5
// cheatah::parsers::json — the JSON `null` token. One class per JSON kind; see json.hpp.7
namespace cheatah::parsers::json {9
/** @brief The JSON `null` literal token. */10
class Null {12
public:14
Null() = default;16
/**17
* The value of `null` (there is no data; provided for a uniform value() interface).18
* @return always nullptr.19
* @complexity O(1).20
* @alloc none.21
* @test CheatahParsersJson.TokenClassesAndNodeVariant22
*/23
[[nodiscard]] static int* value() noexcept { return nullptr; }25
};27
} // namespace cheatah::parsers::json