The json spec allows for escaped unicode in json strings (of the form \\uXXXX). It specifically mentions a restricted codepoint (a noncharacter) as a valid escaped codepoint. Do
When you decode, it seems that this would be an appropriate use for the unicode replacement character, U+FFFD
.
From the Unicode Character Database: