A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: trace out an object or json...

  1. #1
    aidanmack.co.uk
    Join Date
    Dec 2001
    Location
    York, UK
    Posts
    400

    trace out an object or json...

    Hi writing an app that pulls data in from twitter that's returned in json. When I trace it out I get something like [object,Object][object,Object][object,Object]
    Is it possible to see all the properties, names and data ect instead of just seeing "Object" ?

    Thanks
    Aidan

  2. #2
    Junior Member
    Join Date
    Sep 2013
    Posts
    1

    trace out an object or json

    Hi Aidan,

    You need to encode the Object into string using :-

    import com.adobe.serialization.json;


    var jsonString : String = JSON.encode(json); // Pass Your JSONObject
    trace("Your jsonString is : " + jsonString);

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center