Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Under Consideration
Categories Atlas CLI
Created by Guest
Created on Dec 5, 2022

Option To Return Errors As JSON

Hi, When using the `--output json` I would expect the errors to be returned as JSON just like the success output. However, the output for errors seems to continue to be a flat string. It would be helpful from a scripting perspective to have the output as JSON when requested so we can include better logic in our scripts when errors occur. For example: ``` { "code": "409", "message": "The cluster name already exists" } ``` Please let me know if you need more information about the request. Thanks,
  • ADMIN RESPONSE
    Oct 18, 2025
    Hi Nic, Thank you for taking the time to raise this request. We'll look into it and update this feedback when we decide to roadmap it for the near future. Thank you, Jakub