Added json encodePrettily.