fix parse json and add test case for parse array