Workaround for issue in JSON.NET