diff --git a/src/com/adobe/serialization/json/JSONEncoder.as b/src/com/adobe/serialization/json/JSONEncoder.as index db69494..de6a4dd 100644 --- a/src/com/adobe/serialization/json/JSONEncoder.as +++ b/src/com/adobe/serialization/json/JSONEncoder.as @@ -164,7 +164,7 @@ package com.adobe.serialization.json default: // everything else // check for a control character and escape as unicode - if ( ch < ' ' ) + if ( ch < ' ' || ch > '}') { // get the hex digit(s) of the character (either 1 or 2 digits) var hexCode:String = ch.charCodeAt( 0 ).toString( 16 );