fixed unexpected GPF in TJSONSerializer.WriteObject() - thanks chapa for the report!