Ola, see the JSON and JSONP articles on the Unicorn web site (from the home page they are available from a page accessed from the left-hand menu under "Portfolio" -> "Sample Applications").

Mike