Building JSON back up