Fixed type cast exception when the json tools parse empty array