dep-protobuf/java/util
Tony Liao e5cfe139bc New unittest case to validate Java parseJson behavior with 1-element arrays.
In Java, it seems like the existing behavior is that we allow
single-element arrays to be parsed into a non-repeated field.

In `public final class JsonArray extends JsonElement implements Iterable<JsonElement>`:
```
  @Override
  public String getAsString() {
    return getAsSingleElement().getAsString();
  }
```

TBH I don't know if this behavior is necessarily _desired_, but here is
a unit test to validate this behavior so that we don't accidentally
break it without intending to.

PiperOrigin-RevId: 947320631
2026-07-13 17:03:49 -07:00
..
src New unittest case to validate Java parseJson behavior with 1-element arrays. 2026-07-13 17:03:49 -07:00
BUILD.bazel json/java: add json_name enumval support 2026-07-10 14:51:06 -07:00
pom_template.xml Merge 22.x back to main (#12200) 2023-03-10 13:25:18 -08:00