From 317a740f0198085937bf4fdbf032cc481d20f4ed Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 30 Aug 2017 14:31:28 -0700 Subject: Json now can take a UtfString as a text component. It immedaitely converts it to UTF-8 and stores it for now, but later on we may keep it longer, do some better validation, and have encoding options. --- src/unstable/json.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/unstable/json.cpp') diff --git a/src/unstable/json.cpp b/src/unstable/json.cpp index 5f6165c..6159ef3 100644 --- a/src/unstable/json.cpp +++ b/src/unstable/json.cpp @@ -13,6 +13,12 @@ Bu::Json::Json() : { } +Bu::Json::Json( const Bu::UtfString &sValue ) : + eType( String ), + uDat( sValue.get() ) +{ +} + Bu::Json::Json( const Bu::String &sValue ) : eType( String ), uDat( sValue ) -- cgit v1.2.3