mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 01:41:59 -05:00
AK: Add JsonValue(const char*).
This should obviously become a string, but if we don't have it, constructing from a string literal ends up creating a boolean value.
This commit is contained in:
parent
1a761ea4fd
commit
4147394dcb
2 changed files with 6 additions and 0 deletions
|
@ -76,6 +76,11 @@ JsonValue::JsonValue(unsigned value)
|
|||
}
|
||||
}
|
||||
|
||||
JsonValue::JsonValue(const char* cstring)
|
||||
: JsonValue(String(cstring))
|
||||
{
|
||||
}
|
||||
|
||||
JsonValue::JsonValue(double value)
|
||||
: m_type(Type::Double)
|
||||
{
|
||||
|
|
|
@ -34,6 +34,7 @@ public:
|
|||
JsonValue(unsigned);
|
||||
JsonValue(double);
|
||||
JsonValue(bool);
|
||||
JsonValue(const char*);
|
||||
JsonValue(const String&);
|
||||
JsonValue(const JsonArray&);
|
||||
JsonValue(const JsonObject&);
|
||||
|
|
Loading…
Reference in a new issue