added json.data property and adjusted json.stringify