我需要最有效的方法来解析以下字符串,并使用java从中提取imgurl。

{ms:"images,5160.1",
turl:"http://ts1.mm.bing.net/th?id=I4693880201938488&pid=1.1",
height:"178",width:"300",
imgurl:"http://www.attackingsoccer.com/wp-content/uploads/2011/07/World-Cup-2012-Draw.jpg",
offset:"0",t:"World Cup 2014 Qualification – Europe Draw World Cup 2012 Draw ...",
w:"719",h:"427",ff:"jpeg",
fs:"52",durl:"www.attackingsoccer.com/2011/07/world-cup-2012-qualification-europe...",
surl:"http://www.attackingsoccer.com/2011/07/world-cup-2012-qualification-europe-draw/world-cup-2012-draw/",
mid:"D9E91A0BA6F9E4C65C82452E2A5604BAC8744F1B",k:"6",ns:"API.images"}"


对于上述字符串,输出应为:

http://www.attackingsoccer.com/wp-content/uploads/2011/07/World-Cup-2012-Draw.jpg

任何帮助表示赞赏。

谢谢!

最佳答案

好像是JSON消息。
您可以使用例如将其转换为POJO GSON。

07-26 09:27