c# - Json formatted string to list -


i have string this:

{"label":{"en":"africa","de":"afrika"},"description":{"en":"continent","de":"irdischer kontinent"}} 

is possible convert list like:

"label" - "en":"africa","de":"afrika" "description" - "en":"continent","de":"irdischer kontinent" 

thanks

as others have suggested, looks you're trying process json document. recommend json.net this.

however, can manipulate string if transformation simple , don't expect variation in input. 1 easy way this:

var result = input.replace(":{", " - ")                   .replace("},", environment.newline)                   .replace("{", string.empty)                   .replace("}", string.empty); 

Popular posts from this blog

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -