This is an automated email from the ASF dual-hosted git repository.
jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git
The following commit(s) were added to refs/heads/master by this push:
new 7aff7edc0 More docs.
7aff7edc0 is described below
commit 7aff7edc0d3323f837aa11edb6495be13740207d
Author: James Bognar <[email protected]>
AuthorDate: Sun Sep 28 12:17:01 2025 -0400
More docs.
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 09ebc9287..597788a82 100644
--- a/README.md
+++ b/README.md
@@ -83,7 +83,7 @@ public class QuickStart {
Person person = new Person("John", 30);
// Serialize to JSON
- String json = JsonSerializer.DEFAULT_READABLE.serialize(person);
+ String json = Json.of(person);
System.out.println(json);
// Output: {"name":"John","age":30}
}
@@ -104,7 +104,7 @@ public class QuickStart {
```java
// Parse JSON back to POJO
-Person parsed = JsonParser.DEFAULT.parse(json, Person.class);
+Person parsed = Json.to(json, Person.class);
System.out.println(parsed.name); // Output: John
```