I'm using Scala and I have an http response like this:
_SS_MainSolrCallbackH(
{
response: {
numFound: 1,
start: 0,
maxScore: 4.9338827,
docs: [
{
tipo: "M",
id: "mus1933196",a
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 string as json, it will fail because it is not exactly json. What is the best way to remove the _SS_MainSolrCallbackH( )
part of the string, leaving only the hash json?