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

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -