Fix JSON deserializer for restarting parsing

This PR fixes the JSON deserializer so it is able to continue parsing.