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

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -