6 Replies Latest reply on Jun 11, 2011 11:15 AM by -==cfSearching==-

    How to display data from JSON

    lovewebdev Level 1

      Guys Im banging my head against the wall.

       

      So Ive got JSON being returned from a cfhttp.

       

      How the heck do I make use of that data. Everything I do gives me you get turn a complex object into a simple object.

       

      My last line is

       

      <cfdump var="#friendsl#"> which has this JSON from Facebook:

       

      {
         "data": [
            {
               "name": "whatever whatever",
               "id": "554545453"
            }
         ]
      }

       

       

      I've tried looping over it as a structure, nothing. Ive tried turning it into a query, nothing.

       

      Any help would be much appreciated.