Q:

How to remove string "\u001b[1m" in java

After I receive a content response of the server, and print the content to console and I realize existing of the string "\u001b[1m", and I think it's the reason I can't parse the conte tresponse as a JSON object.
And I want to remove the string, any solution?

A:

That looks like an ANSI video escape sequence to turn bold mode on. Are you sure that the server is sending back a JSON object?

