diff options
Diffstat (limited to 'src/JSONValue.h')
-rw-r--r-- | src/JSONValue.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/JSONValue.h b/src/JSONValue.h index 02d0fab..e7024f9 100644 --- a/src/JSONValue.h +++ b/src/JSONValue.h @@ -79,11 +79,16 @@ class JSONValue static std::wstring Indent(size_t depth); JSONType type; - std::wstring string_value; - bool bool_value; - double number_value; - JSONArray array_value; - JSONObject object_value; + + union + { + bool bool_value; + double number_value; + std::wstring *string_value; + JSONArray *array_value; + JSONObject *object_value; + }; + }; #endif |