making JSON parser a private method

making JSON parser a private method