|
@@ -6,9 +6,12 @@
|
|
|
|
|
|
#include <AK/JsonArray.h>
|
|
|
#include <AK/JsonObject.h>
|
|
|
-#include <AK/JsonParser.h>
|
|
|
#include <AK/JsonValue.h>
|
|
|
|
|
|
+#ifndef KERNEL
|
|
|
+# include <AK/JsonParser.h>
|
|
|
+#endif
|
|
|
+
|
|
|
namespace AK {
|
|
|
|
|
|
JsonValue::JsonValue(Type type)
|
|
@@ -224,9 +227,11 @@ void JsonValue::clear()
|
|
|
m_value.as_string = nullptr;
|
|
|
}
|
|
|
|
|
|
+#ifndef KERNEL
|
|
|
Optional<JsonValue> JsonValue::from_string(const StringView& input)
|
|
|
{
|
|
|
return JsonParser(input).parse();
|
|
|
}
|
|
|
+#endif
|
|
|
|
|
|
}
|