Send json application header and make path absolute to avoid issues