Note: This is not a backward compatible change.
 * Removing the extra array used for links
 * Adding a indentJSON method for PHP < 5.4.0