only include photo in json if has a photo
only include question in json if has a question