C# Convert string to array -


so i'm working umbraco , using tag datatype. i'm trying take tags added given node , putting them array of strings when grab value seems come out this:

"[\"tag1\",\"tag2\"]"

how can convert string of array regular array? have gotten far string of individual characters

the array format have provided example looks part of json object.

you use json.net library parse array token of json object.

var array = jarray.parse(tagstring).values<string>(); 

a complete example available here.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -