Skip to content

Instantly share code, notes, and snippets.

@fenderrex
Last active July 20, 2016 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fenderrex/843d25ff5b0970d7e90e6c1d7e4a06b1 to your computer and use it in GitHub Desktop.
Save fenderrex/843d25ff5b0970d7e90e6c1d7e4a06b1 to your computer and use it in GitHub Desktop.
best use json.loads(io.StringIO(["some data","this could be a string ect..."]))
#dont like importing like someone who wont read? use
class wrapper(string):#or String or str one of the the will work
def __init__(self,str):
self.str=str
def read(self):
return self.str
#google python __get__ __set__
json.loads(wrapper("what ever data"))#fix first error and only? lol
#or
#json.loads(io.StringIO(["some data","this could be a string ect..."]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment