Never liked trying to use RM to do string manipulation, but can be done and you're on the right track. It will take you two token functions one to break on the commas and another to break that value at the colon.
Best example I could find is from the RM master himself - Extracting a token from a String Variable