Solved json obj to array issue