I am new to Dynatrace. We are trying to extract problem details and are using the V1 API which produces a messy nested JSON file. Is JSON the only format supported for problem information? If so, any community scripts or ideas for parsing that JSON?
Solved! Go to Solution.
Yes, the REST API produces JSON in general. It's not messy, it's structured :-).
You do not mention the language you are trying to parse the response, but Dynatrace has openapi specification that will allow you to generate the "client" stubs in any language (for example using swagger-codegen).
If you want to play with it in shell scripts - I'd recommend a combination of curl and jq command line tools. Especially jq is a must have swiss-army knife when dealing with JSON.