adding json2 by Crockford for browsers which don't support JSON methods natively.