Move JsonPrinter to util class.
Only switch manifest keys, if spark is run.
fix indent