fixed TPersistent process in TJSONWriter.WriteObject
- thanks Jordi for the pull request in