Blanket use array 'files' to store statement count. When using JSON.stringify to parse 'files' array, however it contain source property that we cannot stringify. So modify the array into object here can resolve this issue.