Use flatten array for loadJson command