pretty print JSON and externalise static data