str = {'8': {'name': 'breeze bedsheet ', 'price': 1150, 'qty': 1, 'strid': '8', 'image': 'images/download_1.jpg'}, '10': {'name': 'neat and clean bedsheet ', 'price': 1150, 'qty': 2, 'strid': '10', 'image': 'images/images_2.jpg'}}
obj = JSON.parse(str)
I want to convert this string to JSON object but when i use JSON.parse method it gives me an error like
uncaught syntaxError: Unexpected token ' in JSON at position 1
stris not a string at all.