https://github.com/athrvk/json-to-string-recursive
https://github.com/athrvk/json-to-string-recursive
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/athrvk/json-to-string-recursive
- Owner: athrvk
- Created: 2020-11-19T18:38:31.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-19T18:51:41.000Z (about 5 years ago)
- Last Synced: 2025-02-10T05:14:17.171Z (11 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# json-to-string-recursive
A python script to exract recursively path strings into a file
Use json file as the argument while executing the file
```python
python3 test.py
```
for example -
## json:
```
{
"id": "0001",
"type": "donut",
"name": "Cake",
"image":[
{
"url": "images/0001.jpg",
"width": 200,
"height": 200
},
{
"url": "images/00032.jpg",
"width": 1200,
"height": 12300
}
],
"thumbnail":
{
"url": "images/thumbnails/0001.jpg",
"width": 32,
"height": 32
}
}
```
## output:
```
id.0001
type.donut
name.Cake
image.url.images/0001.jpg
image.width.200
image.height.200
image.url.images/00032.jpg
image.width.1200
image.height.12300
thumbnail.url.images/thumbnails/0001.jpg
thumbnail.width.32
thumbnail.height.32
```