I am trying (in Javascript an Coldfusion) to convert: {"val1":"member","val2":"book","val3":"journal","val4":"new_member","val5":"cds"},
into this: { member,book,journal,new_member,cds}
Notice that I am trying to eliminate quotes.
Is it possible to achieve that? How can I do it?
Thanks
Tom
09-26-2012, 11:23 PM
atuch
The existing code is a JSON object (not an array) and what you are trying to convert it to is not valid syntax. What exactly are you trying to do? By eliminating the quotes, you are converting the strings to variable names which may or may not exist.