Skip to content

Instantly share code, notes, and snippets.

@crotel
Forked from scottslowe/pretty-json
Created March 25, 2022 06:22
Show Gist options
  • Save crotel/1f03be93582228d6502d2d47418d7945 to your computer and use it in GitHub Desktop.
Save crotel/1f03be93582228d6502d2d47418d7945 to your computer and use it in GitHub Desktop.
This output came from running the raw JSON-serialized response to a REST API through the python json.tool command.
{
"result_count": 3,
"results": [
{
"_href": "/ws.v1/lswitch/3ca2d5ef-6a0f-4392-9ec1-a6645234bc55",
"_schema": "/ws.v1/schema/LogicalSwitchConfig",
"type": "LogicalSwitchConfig"
},
{
"_href": "/ws.v1/lswitch/81f51868-2142-48a8-93ff-ef612249e025",
"_schema": "/ws.v1/schema/LogicalSwitchConfig",
"type": "LogicalSwitchConfig"
},
{
"_href": "/ws.v1/lswitch/9fed3467-dd74-421b-ab30-7bc9bfae6248",
"_schema": "/ws.v1/schema/LogicalSwitchConfig",
"type": "LogicalSwitchConfig"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment