/customers/iconara.net/iconara.net/httpd.www/blog/wp-content/plugins/wp-super-cache/wp-cache-phase1.php Iconara » Parsing JSON using ExternalInterface follow-up

Parsing JSON using ExternalInterface follow-up

As I wrote in an earlier post, it’s possible to parse JSON using, or rather by abusing, the ExternalInterface. Out of curiosity I decided to see if it was faster than Adobe’s corelib JSON parser, but unsurprisingly it wasn’t.

The corelib JSON parser was about three times as fast in an informal test using a average-sized JSON blob. Given that using ExternalInterface is also less secure since it will also execute any JavaScript code within a JSON string, I wouldn’t recommend using it. However, I still think it’s quite fun that its possible.

Leave a Reply