code: def emit_map(self, m, _, cache):
          
          self.emit_array_start(None)
          self.marshal(MAP_AS_ARR, False, cache)
          for k, v in m.items():
              self.marshal(k, True, cache)
              self.marshal(v, False, cache)
          self.emit_array_end()
docs: Emits array as per default JSON spec.