String to Map

for example, how can String= "{serviceCode=0610, processCode=190046}" be converted to Map < string,String >

Feb.25,2022

remove {/ code > }
according to , separate
then separate


according to =


use json


1. Find a json package, but you may need to change the parameters in it to a string such as

.
String="{'serviceCode'='0610', 'processCode'='190046'}"  

2. Use the rule and match it. For more information, please see how to use the rules
3. Split as said on the first floor


use GSON. You can refer to my blog https://blog.csdn.net/shenzho.

.
Menu