Added 'loads' method for parsing a json string