Reformatting, return response as JSON packet