code: def import_schema_to_json(name, store_it=False):
      
  
      schema_file = u"%s.json" % name
      file_path = os.path.join(SCHEMA_ROOT, schema_file)
      log.debug(u"trying to load %s " % file_path)
      schema = None
      try:
          schema_file = open(file_path, "r").read()
      except IOError, e:
          log.error(u"file not found %s" % e)
          msg = "Could not find schema file. %s" % file_path
          raise SalesKingException("SCHEMA_NOT_FOUND", msg)
      schema = json.loads(schema_file)
  
      if schema is None:
          msg = "loading failed foo %s" % name
          raise SalesKingException("SCHEMA_NOT_FOUND", msg)
      return schema
docs: loads the given schema name
      from the local filesystem
      and puts it into a store if it
      is not in there yet
      :param name:
      :param store_it: if set to True, stores the contents
      :return: