Add JSON formatting to token response