Updated HTTP API request to use the "pretty" API option which simplifies the response parsing.