Answered
Scripting for photoshop - JSON just returns [object Object]
- September 30, 2021
- 4 replies
- 1924 views
Hello,
So I need to generate a big number of images from 1 image (like lottery tickets) that come from a set of numbers I have in a JSON file.
I have everything working, I just can't get the script to properly work with the JSON itself... For example, if I just run this code:
var data = [{"apple":{"size":5,"taste":4,"color":7}},
{"orange":{"size":8,"taste":4,"color":8}}]
alert(data);
alert(data[0]);
What I get on photoshop is just [object Object], instead of the data I put in the JSON object.
What I am doing wrong here, can anyone help me?
