Inspiring
December 2, 2021
Question
Photoshop Script that reads a JSON file
- December 2, 2021
- 2 replies
- 4368 views
Hello everyone,
I'm trying to read a JSON file using a photoshop script.
I will select the JSON file via File Dialog:
var selectedFile = app.openDialog();
I want to loop through all JSON's objects and alert the values. (this is just a test)
for that here is an example of a JSON I made:
[
{"SKU":"AAA","TITLE":"Banana"},
{"SKU":"BBB","TITLE":"Peach"}
]
To sum up:
The photoshop script will pop a dialog asking the user to select a JSON file, and then it will show 4 alerts: AAA, Banana, BBB, Peach
Any help will be much appreciated!
