Added json output, json application/json header