#785: Ensure all data is appended to JSON object

Resolves #785.