Problem with enumerators in JSON
I have a problem with generic style adding. I created a collection of objects in JSON that correspond to the style definition.
var myDef = {
"mtPanelName": "superScript",
"inddType": "Character",
"parametersOfAddition": {
"name": "Sup",
"position": "Position.SUPERSCRIPT"
}
app.activeDocument.characterStyles.add(myDef.parametersOfAddition);
But in JSON I can save the enumerator name only as a String. Unfortunately, most methods do not allow the use of a String. The problem generally concerns the storage of object names in JSON. I meet him more often. How can I solve it?
Regards,
Tomek