changed api/gallery to valid json