Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/com/adobe/serialization/json/JSONEncoder.as
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down