text: I have a nested dictionary with many items in a json file:
  {
  "Create Code For Animals": {
  "mammals": {
  "dog": {
  "color": "brown",
  "name": "John",
  "legs": "four",
  "tail": "yes"
  },
  "cat": {
  "color": "blue",
  "name": "Johnny",
  "legs": "four",
  "tail": "yes"
  },
  "donkey": {
  "color": "grey",
  "name": "Mickey",
  "legs": "four",
  "tail": "yes"
  }
  def loadJson(self, jsonFilename):
  with open(FILE_PATH + '\\' + jsonFilename, 'r') as f:
  return json.load(f)
  def writeJson(self, jsonFilename, jsonDict):
  with open(FILE_PATH + '\\' + jsonFilename, 'w') as f:
  return json.dump(jsonDict, f)
  json.dumps and dump have a parameter called indent
  If ``indent`` is a non-negative integer, then JSON array elements and object members will be pretty-printed with that indent level. An indent level of 0 will only insert newlines. ``None`` is the most compact representation. Since the default item separator is ``', '``, the output might include trailing whitespace when ``indent`` is specified. You can use ``separators=(',', ': ')`` to avoid this
  Something like this would do:
  json.dump(jsonDict,f,indent=4)