fixed #181, If error etc then the json should not contain path array