#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2012
    Posts
    8
    Rep Power
    0

    Array conversion issue


    Hello friends,

    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
  2. #2
  3. No Profile Picture
    Moderator

    Join Date
    Jun 2002
    Location
    Raleigh, NC
    Posts
    5,263
    Rep Power
    968
    Since the JSON values are strings then they'll be translated into JavaScript strings. If you want to change that to something else, you'd need to do it yourself. To be honest, I'm not really sure what you're trying to do or why you wouldn't just want these as strings?

IMN logo majestic logo threadwatch logo seochat tools logo