Fix Code.UnmarshalJSON to work with valid json only
#1276
+66
−21
Merged