I know I there is a way to split using delimeter but the string I have is similar to JSON.
This is the string
[{type=Callback, output=[{name=prompt, value=InputCode}], input=[{name=IDT1, value=}]}, {type=TextOutputCallback, output=[{name=message, value={"current_type":"Code","info":{"some_key":"cf2fc86a","some_type":"Code","ph_no":"111111111"},"attempt":2}}]}]
Now I want to convert it in a way I can extract "attempt". So, I want to do something like this
String attempt = map.get("attempt");
The problem is that this isn't a valid JSON cause most of values aren't in double quotes. What would be the best way to extract that?
"attempt"key without parsing JSON? Or you need to convert the given string into some POJO, where value can be aMap<String, Object>containing nested maps?