Added tests for the new JSON classes.
Updated the pretty escape sequences so that the background and default foreground colours are set at the start. Also added an acceptance tests for the JSON prettifying.