az ad sp owner list TypeError: Object of type 'bytearray' is not JSON serializable
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
az ad sp owner list TypeError: Object of type 'bytearray' is not JSON serializable
**Command Name**
`az ad sp owner list`
**Errors:**
```
Object of type 'bytearray' is not JSON serializable
Traceback (most recent call last):
Local\Temp\pip-unpacked-wheel-2lthyver\knack\cli.py, ln 221, in invoke
Local\Temp\pip-unpacked-wheel-2lthyver\knack\output.py, ln 149, in out
Local\Temp\pip-unpacked-wheel-2lthyver\knack\output.py, ln 41, in format_json
json\__init__.py, ln 238, in dumps
json\encoder.py, ln 201, in encode
json\encoder.py, ln 428, in _iterencode
json\encoder.py, ln 325, in _iterencode_list
json\encoder.py, ln 404, in _iterencode_dict
json\encoder.py, ln 325, in _iterencode_list
json\encoder.py, ln 404, in _iterencode_dict
json\encoder.py, ln 437, in _iterencode
Local\Temp\pip-unpacked-wheel-2lthyver\knack\output.py, ln 33, in default
json\encoder.py, ln 180, in default
TypeError: Object of type 'bytearray' is not JSON serializable
```
## To Reproduce:
- `az ad sp owner list --id {}`
## Expected Behavior
It to work
## Environment Summary
```
Windows-10-10.0.17763-SP0
Python 3.6.8
Installer: MSI
azure-cli 2.15.1
```
## Additional Context
Contributor guide
Assessment
This issue has not been assessed yet.