Skip to content

Add tester methods to JSON abstraction#2850

Merged
riccardobl merged 1 commit into
jMonkeyEngine:masterfrom
franco200802:add-json-tester-methods
Jun 8, 2026
Merged

Add tester methods to JSON abstraction#2850
riccardobl merged 1 commit into
jMonkeyEngine:masterfrom
franco200802:add-json-tester-methods

Conversation

@franco200802

Copy link
Copy Markdown
Contributor

Added default methods to JsonElement interface:

  • isJsonObject()
  • isJsonArray()
  • isJsonPrimitive()
  • isJsonNull()

Also added overriding implementations in GsonElement that delegate to the underlying com.google.gson.JsonElement methods.

Closes #2316

Added default methods to JsonElement interface:
- isJsonObject()
- isJsonArray()
- isJsonPrimitive()
- isJsonNull()

Also added overriding implementations in GsonElement that
delegate to the underlying com.google.gson.JsonElement methods.

Closes jMonkeyEngine#2316

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces default methods in the JsonElement interface (isJsonObject, isJsonArray, isJsonPrimitive, and isJsonNull) and overrides them in the GsonElement implementation to check the underlying Gson element. There are no review comments, so I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@riccardobl riccardobl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks good. Thanks

@riccardobl riccardobl merged commit 4f2fe11 into jMonkeyEngine:master Jun 8, 2026
11 of 12 checks passed
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.

Add some "tester" methods to JSON abstraction

2 participants