Skip to main content
Inspiring
April 1, 2024
Question

Unable to pass single quote to CEP panel

  • April 1, 2024
  • 0 replies
  • 94 views

I currently have the following string:

var singleOrder.name = "O\'Malley"

I attempt to pass this string to CEP (jsx) for me to use in an illustrator sciprinting environment.

This is part of other data so I stringify it like so:

JSON.stringify(orders);

I pass the data into CEP and then attempt ot parse it:

JSON.parse(orders);

However it won't parse, I don't even get an error on a try and catch block.  Nothing happens.  

I'm using a JSON library for CEP 

This topic has been closed for replies.