created parseJson() to for refactoring - still needs work