inheritance error in json