Return success / fail result in json