'Generate a file that only contains the structural parts (i.e. brackets) of a json file without other contents
Is there a way to extract the structural details of a json file using Python?
I have a file that looks something like this:
{
"help": "https://?name=package_search",
"success": true,
"result": {
"count": 47,
"facets": {},
"results": [
{
"author": "ggm",
"author_email": "ggm@____.nl",
"creator_user_id": "x_x_x_x" }]}}
Whereas I only want to see a structure that would be something like this:
{
{
[
{
}
{
}
]
}
}
Is this possible to achieve with Python?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
