'How to convert list of map as string to list of Map<String,String> or list<Pojo>

i have a string "[{id=123, customername=john}]" i want to convert it into List<Map<String,String>> or List<Pojo> , i tried using gson library to convert into List<Map<String,String>> but Method threw 'com.google.gson.JsonSyntaxException' exception as gson accepts first argument as json string and this is not a json string, i can convert into json string and pass to gson function or object mapper function with use of pattern, just want to avoid that , is there any way to convert the string into List<Map<String,String>> or List class, i also followed the thread how to convert below string to list of map? but this throws com.google.gson.JsonSyntaxException



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source