I have a string as below which needs to be converted to HashMap.
String datasample="{SessionID=ACVRT5678897DERT, Name=ACFGTYR, Age=34, sessionTime=20210428}"
I tried using  Java 8 lambda ,stream and  collect and it works when datasample does not include "{" and "}". But My string includes "{" and "}".
Please suggest.
 
     
    