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.

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1becd7b-5478c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1becd7b-5478c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?