how can I\'m looking for the best way to convert a string like this into an object I don\'t know if using regex is good solution here because I have diferent and unprectible