Override token method to return json back