updating from upstream
fix parse error when json is a array