Parse request result as JSON and call the success function