1
votes

I have a string: [{Product_id:1 Count:5} {Product_id:2 Count:22}]

And I want to extract values Product_id and values Count from there into an array of int. To get something like this:

Product_id = [1,2]
Count = [5, 22]
Show us what you tried so far and where you are stuck. - Cerise Limón