Something every web developer has to do a lot is redirecting your web page to another location. For PHP developers it usually looks like this:
< ?php header('Location: http://www.mylocation.com'); ?>
This works well enough as long as headers have not been sent. A common mistake for PHP developers is to use ob_start() to put all content into the output buffer. This can be useful for other functions such as compression, but it’s not a good habit to get into just to compensate for sloppy code. Here is a simple little function that can help redirect using multiple methods.

To really appreciate JSON its good to understand