Install jq package:
sudo dnf install jq
Usage example:
curl -u key:x "https://api.com/users.json" | jq