Results 1 to 2 of 2

Thread: Array conversion issue

  1. #1
    Join Date
    Apr 2011

    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?


  2. #2
    Join Date
    Jun 2008
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center