1
0
Fork
You've already forked labs
0
Utilities for Java development
  • Java 100%
Find a file
Jens Bannmann 31b606348e
All checks were successful
Build / build (push) Successful in 11m30s
[gitflow] Update for next development version
2026年02月15日 20:35:17 +01:00
.forgejo/workflows Move to Codeberg 2025年08月22日 18:25:14 +02:00
anansi-postgres [gitflow] Update for next development version 2026年02月15日 20:35:17 +01:00
annotations [gitflow] Update for next development version 2026年02月15日 20:35:17 +01:00
core [gitflow] Update for next development version 2026年02月15日 20:35:17 +01:00
graph-maven-plugin [gitflow] Update for next development version 2026年02月15日 20:35:17 +01:00
json-nav [gitflow] Update for next development version 2026年02月15日 20:35:17 +01:00
kumuluzee-errorhandling [gitflow] Update for next development version 2026年02月15日 20:35:17 +01:00
parent [gitflow] Update for next development version 2026年02月15日 20:35:17 +01:00
records-api [gitflow] Update for next development version 2026年02月15日 20:35:17 +01:00
watchdog-maven-plugin [gitflow] Update for next development version 2026年02月15日 20:35:17 +01:00
.gitignore add @GenerateCarriers 2022年04月23日 13:55:33 +02:00
LICENSE Update copyright years 2025年04月13日 11:26:23 +02:00
pom.xml [gitflow] Update for next development version 2026年02月15日 20:35:17 +01:00
README.md Add support for short & BigInteger to JsonNav 2025年06月23日 12:43:33 +02:00

anansi-postgres


annotations


core


json-nav

API to efficiently navigate JSON structures and extract data.

For some use cases, using JsonNav can lead to more expressive code that is easier to read and maintain than when using other JSON APIs or object mappers.

Compared to other APIs, JsonNav provides these advantages:

  • Your code for retrieving and mapping values can be compact and readable, yet powerful
  • The fluent API only offers methods that make sense at that point, e.g. once asString() is called, asNumber() is no longer available.
  • Makes use of java.util.Optional
  • Strict handling of type mismatches, for example:
    • Reading a floating point value as an int throws an exception instead of performing coercion
    • Reading a string like "17" value as a number throws an exception instead of parsing the value
  • Increased robustness due to not implementing the Map interface
  • Fully null-marked with JSpecify annotations
  • All references are immutable

Core

Adapter for Jackson

Pass a com.fasterxml.jackson.databind.node.ObjectNode or com.fasterxml.jackson.databind.node.ArrayNode to JsonNav.wrap().

Adapter for Gson

Pass a com.google.gson.JsonObject or com.google.gson.JsonArray to JsonNav.wrap().

Adapter for Jakarta JSON Processing

Pass a jakarta.json.JsonObject or jakarta.json.JsonArray to JsonNav.wrap().

Adapter for JSR-374 JSON Processing

Pass a javax.json.JsonObject or javax.json.JsonArray to JsonNav.wrap().


kumuluzee-errorhandling


records-api