diff --git a/AK/JsonValue.cpp b/AK/JsonValue.cpp index c3682046a8..439b8f1859 100644 --- a/AK/JsonValue.cpp +++ b/AK/JsonValue.cpp @@ -6,9 +6,12 @@ #include #include -#include #include +#ifndef KERNEL +# include +#endif + namespace AK { JsonValue::JsonValue(Type type) @@ -224,9 +227,11 @@ void JsonValue::clear() m_value.as_string = nullptr; } +#ifndef KERNEL Optional JsonValue::from_string(const StringView& input) { return JsonParser(input).parse(); } +#endif } diff --git a/Kernel/CMakeLists.txt b/Kernel/CMakeLists.txt index c3d5360e6b..bf937387c6 100644 --- a/Kernel/CMakeLists.txt +++ b/Kernel/CMakeLists.txt @@ -301,7 +301,6 @@ set(AK_SOURCES ../AK/FlyString.cpp ../AK/GenericLexer.cpp ../AK/Hex.cpp - ../AK/JsonParser.cpp ../AK/JsonValue.cpp ../AK/LexicalPath.cpp ../AK/String.cpp