I am using Scala language and I have a response body like this:
_SS_MainSolrCallbackH(
{
response: {
numFound: 1,
start: 0,
maxScore: 4.9338827,
docs: [
{
tipo: "M",
id: "mus1933196",
s: 4.9338827,
u: "daniellaalcarpe",
d: "lagrima-de-amor",
dd: "",
f: "202114_20130510215437.jpg",
a: "Daniella Alcarpe",
t: "Lágrima De Amor",
g: "MPB"
}
]
},
highlighting: {
mus1933196: {
titulo: [
"Lágrima <b>De</b> <b>Amor</b>"
]
}
}
}
)
If I try to parse this as a json, it fails, because it is not actually a json. What is the best way to remove the _SS_MainSolrCallbackH( ) part of the string, leaving only the json hash?