I wish to obtain the layer structure and format it into JSON, structured as follows:
[
{
"type": "group",
"visible": true,
"opacity": 1,
"blendingMode": "normal",
"name": "group test",
"left": 0,
"right": 0,
"top": 0,
"bottom": 0,
"height": 0,
"width": 0,
"children": [
{
"type": "layer",
"visible": true,
"opacity": 1,
"blendingMode": "normal",
"name": "layer test",
"left": 0,
"right": 0,
"top": 0,
"bottom": 0,
"height": 0,
"width": 0,
"mask": {},
"image": {}
}
]
}
]
I wish to obtain the layer structure and format it into JSON, structured as follows:
Can anyone tell me how to do this?