Skip to content

fix: Allow JSON parsing of snake_case field names#832

Merged
anthony-swirldslabs merged 2 commits into
hashgraph:mainfrom
berryware:831-allow-json-snake-case-parsing
May 19, 2026
Merged

fix: Allow JSON parsing of snake_case field names#832
anthony-swirldslabs merged 2 commits into
hashgraph:mainfrom
berryware:831-allow-json-snake-case-parsing

Conversation

@berryware
Copy link
Copy Markdown
Contributor


Description:

  • convert json field name to camelCase before matching to protobuf object field name

Related issue(s):
Fixes #831

Notes for reviewer:

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

…ject

____________________________________________________________________
Signed-off-by: berryware <231598+berryware@users.noreply.github.com>
Comment thread pbj-integration-tests/src/main/proto/bytesAndString.proto Outdated
- change method name casing to be java-like
____________________________________________________________________
Signed-off-by: berryware <231598+berryware@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@anthony-swirldslabs anthony-swirldslabs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks!

@anthony-swirldslabs anthony-swirldslabs merged commit c481a35 into hashgraph:main May 19, 2026
13 checks passed
@anthony-swirldslabs
Copy link
Copy Markdown
Contributor

@berryware : PBJ 0.15.5 with this fix is being released now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow JSON parsing of snake_case field names.

2 participants