title: Convert string from get method to a valid json c#
body: <p>I am trying to put a string on a json array from get but the JArray.Parse is failing because the string is not a valid json object in the first place. How do I convert a comma delimited string to json?</p>
  
  <p>The input is like </p>
  
  <pre><code>34520,63631,45628
  </code></pre>
  
  <p>The code is like below;</p>
  
  <pre><code>public static string GetLocationInZips(string strZipCodes)
          {
              JArray jarrZipCodes = new JArray();
              JObject response = new JObject();
  
              try
              {
                  jarrZipCodes = JArray.Parse(strZipCodes);
              }
              catch(Exception ex)
              {
                  response["success"] = false;
                  response["error"] = "Failed to serialize zip code array, please check and try again";
                  response["exception"] = ex.ToString();
  
                  return response.ToString();
              }
          }
  </code></pre>