@@ -0,0 +1,1293 @@
+/*%0A * Copyright (C) 2010 Google Inc.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.google.gson;%0A%0Aimport com.google.gson.reflect.TypeToken;%0Aimport java.util.Arrays;%0Aimport java.util.List;%0Aimport junit.framework.TestCase;%0A%0A/**%0A * @author Jesse Wilson%0A */%0Apublic final class CommentsTest extends TestCase %7B%0A%0A  /**%0A   * Test for issue 212.%0A   */%0A  public void testParseComments() %7B%0A    String json = %22%5B%5Cn%22%0A        + %22  // this is a comment%5Cn%22%0A        + %22  %5C%22a%5C%22,%5Cn%22%0A        + %22  /* this is another comment */%5Cn%22%0A        + %22  %5C%22b%5C%22,%5Cn%22%0A        + %22  # this is yet another comment%5Cn%22%0A        + %22  %5C%22c%5C%22%5Cn%22%0A        + %22%5D%22;%0A%0A    List%3CString%3E abc = new Gson().fromJson(json, new TypeToken%3CList%3CString%3E%3E() %7B%7D.getType());%0A    assertEquals(Arrays.asList(%22a%22, %22b%22, %22c%22), abc);%0A  %7D%0A%7D%0A

Test case demonstrating that issue 212 is fixed. We got comment parsing support for free when we switched to JsonReader.