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);