Fix 'this' scope in JSONSerializer's deserialize function