deciphering WebResponse string into list of arrays
===

There is a PHP script which is located on the website. I also have a C# winforms program which sends POST messages using WebRequest/WebResponse approach.

This PHP script connects to mysql database, grabs some data and sends it back to WinForms app. The data has following format:

> John, 32, may
> 
> Peter, 24, June
> 
> etc..

All this text is sent as a single string. **What's the best approach to decipher this string into a list of strings[] ?**

Right now I'm using a self-made approach. PHP script does the following:

* first we separate each word with ","

* then we separate each line with "|"

When I receive the message I divide it into a list using "|" letter

    List<string> names = input.Split('|').ToList<string>();

then I divide each string inside the list:

    List<string[]> namestwo = new List<string[]>();
    foreach (string str in names)
    {
    string[] sep = str.Split(',').ToArray();
    namestwo.Add(sep);
    }

I suppose that there is a better way to do it..