Added json retrieval and parsing.