fork(2) download
  1. using System;
  2. using System.Linq;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. string separator = ",{:}";
  9. string sample = "{\"AAA\":{\"bbb\",\"ccc\"},\"ddd\"";
  10. foreach (var element in sample.Split(separator.ToCharArray()))
  11. {
  12. if (element.Length > 0)
  13. {
  14. Console.WriteLine(element);
  15. }
  16. }
  17. }
  18. }
Success #stdin #stdout 0.05s 23920KB
stdin
Standard input is empty
stdout
"AAA"
"bbb"
"ccc"
"ddd"