I have this content structure and I want to convert this content to json object with Python code.
content
content1
@@ content2 @@
exec: "/user"
elevated: false
args: []
- oci-osmh:
- disableByOs:
- - "CentOS Linux":
- - "Red Hat Enterprise Linux Server":
- - "Debian GNU/Linux":
- disableByRealm:
- - "oc6"
- - "oc7"
- - "oc11"
- exec: "/user"
- elevated: true
- args: []
oci-jms:
exec: "/user"
elevated: true
Please provide my python code to for my expected request, or some guideline
New contributor
Công Doãn Đức is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.