import json


def json_pprint(unformated_json, amount_of_indentation):
  """ Turns raw json into formated json """
  parsed = json.loads(unformated_json)
  output = json.dumps(parsed, indent=amount_of_indentation, sort_keys=True)
  return output