RSS Follow me on Facebook Follow me on Twitter
to home page

Trace JSON object in AS3

I'm absolutely sure that all of you are working with JSON objects. It's pretty helpful to be able to print them and find out what exactly they contain. I wrote a simple function that makes this possible.

Here is the JSON object that we are going to use and the calling of the print method:

Here is the function printJSON


And the result is:

xleon
http://www.xleon.net
Other useful way to see Json objects is Charles proxy. You can see the hold tree, collapse nodes, etc 1
Krasimir Tsonev
http://krasimirtsonev.com
Is that what you mean http://www.charlesproxy.com/ ? 2
developer89 Hi, can I use this functions in my own libraries ? 3
Krasimir Tsonev
http://krasimirtsonev.com
Yes, feel free to use them ;) 4
xleon @Karsimir Yes 5
Krasimir
http://krasimirtsonev.com
@xleon: This program looks interesting, but how can we use it together with action script. I mean if I have a json object in a variable in flash. 6
xleon That is just a proxy to see data you send/receive to/from server 7
Krasimir
http://krasimirtsonev.com
Anyway thanks for the link. Have to check it. I'm using Tamper data (add-on for Firefox) for the same purpose - https://addons.mozilla.org/en-US/firefox/addon/966/ 8
Krasimir
http://krasimirtsonev.com
As far as I can see we can use this little program as a cheating tool :) 9
xleon That?s right!!
I mostly use it for flash remoting debug (amf), but you can "save" whatever goes through http (images, flv videos, etc, etc)
10
Your name: add your comment here
Email:
Trace JSON object in AS3 Leave this field blank if you don't want to receive notifications about this article.
Website:
Trace JSON object in AS3 Will be published below your name. Should start with 'http://'.
Comment:
9 + 5 =
send