From 3597d3c36125f6181d37db48f3be3902ab50c123 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 22 Jan 2018 12:45:34 -0800 Subject: Fixed escaped character encoding in Json decoding. --- src/unstable/json.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/unstable') diff --git a/src/unstable/json.cpp b/src/unstable/json.cpp index 3627214..cdc2a30 100644 --- a/src/unstable/json.cpp +++ b/src/unstable/json.cpp @@ -505,12 +505,13 @@ void Bu::Json::parseString( char &c, Bu::Stream &sInput, Bu::String &sOut ) { if( c == '\\' ) bEscape = true; - if( c == '"' ) + else if( c == '"' ) { readChar( c, sInput ); break; } - sOut += c; + else + sOut += c; } } } -- cgit v1.2.3