code: def from_json(j):
      
      if isinstance(j, dict):
          return from_dict(j)
  
      if not (isinstance(j, str) or isinstance(j, unicode)):
          raise TypeError("argument must be of type str")
  
      return from_dict(json.loads(j))
docs: load an nparray object from a json-formatted string
  
      @parameter str j: json-formatted string