Daniells Brandi Posted December 10, 2015 Share Posted December 10, 2015 Hello guys, I need a quick cleanup of this string in http_response.. {"dat":[{"length":37,"rid":"pro.ts","text":["I just want this part of the string"]}]} I take only the part in bold thank you for help. Link to comment Share on other sites More sharing options...
Rolig Loon Posted December 10, 2015 Share Posted December 10, 2015 default{ state_entry() { string Msg = "{\"dat\":[{\"length\":37,\"rid\":\"pro.ts\",\"text\":[\"I just want this part of the string\"]}]}"; llSay(0, Msg); list temp = llParseString2List(Msg,["\""],[]); llSay(0,"\n will be abstracted as \n"); string ShortMsg = llList2String(temp,11); llSay(0,ShortMsg); }} Produces: {"dat":[{"length":37,"rid":"pro.ts","text":["I just want this part of the string"]}]}will be abstracted as I just want this part of the string Link to comment Share on other sites More sharing options...
Daniells Brandi Posted December 11, 2015 Author Share Posted December 11, 2015 Working Great, thanks Rolig Loon Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now