code: def discover_json(bank=None, **meta):
      
      try:
          import simplejson as json
      except ImportError:
          import json
      if bank is None:
          bank = default_bank
      bank.register('json', json.loads, json.dumps, **meta)
docs: Discovers the JSON format and registers it if available.
  
      To speed up JSON parsing and composing, install `simplejson`::
  
          pip install simplejson
  
      The standard library module `json` will be used by default.
  
      :param bank: The format bank to register the format in
      :param meta: Extra information associated with the format