Fixed the format of parseJson to support testing