JSON in Javascript: crossbrowser JSON.stringify() and JSON.parse()

http://www.json.org/js.html

JSON.stringify(myObject) - converting JavaScript data structures into JSON text
JSON.parse(myJSONtext) - converting JSON text into JavaScript data structures

cross-browser script
https://github.com/douglascrockford/JSON-js


Umbraco: Get a Host name

http://example.com/query/

@Request.ServerVariables["HTTP_HOST"] -> example.com

@Request.Url.ToString() -> http://example.com/query/