code: function normalize(obj) {
    if (obj === null || typeof obj !== 'object') {
      return JSON.stringify(obj);
    }
    if (obj instanceof Array) {
      return '[' + obj.map(normalize).join(', ') + ']';
    }
    var answer = '{';
    for (var key of Object.keys(obj).sort()) {
      answer += key + ': ';
      answer += normalize(obj[key]);
      answer += ', ';
    }
    answer += '}';
    return answer;
  }
docs: Normalizes a JSON object.