-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ClassValue to simplify JSON (#453)
* As per recent commits, use ClassValue to speed up JSON serialization * Code is structured to allow simple JSON logic to be unified
- Loading branch information
1 parent
52693f5
commit ed76064
Showing
11 changed files
with
1,082 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
943 changes: 725 additions & 218 deletions
943
src/main/java/org/joda/beans/ser/json/JodaBeanJsonWriter.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"@bean": "org.joda.beans.sample.ImmGuava", | ||
"collection": { | ||
"@meta": "List", | ||
"value": [] | ||
}, | ||
"list": ["A", "B"], | ||
"set": ["A", "B"], | ||
"sortedSet": ["A", "B"], | ||
"map": [["A", "AA"], ["B", "BB"]], | ||
"sortedMap": [["A", "AA"], ["B", "BB"]], | ||
"biMap": [["A", "AA"], ["B", "BB"]], | ||
"multimap": { | ||
"@meta": "ListMultimap", | ||
"value": [["A", "B"], ["A", "C"], ["B", "D"]] | ||
}, | ||
"listMultimap": [["A", "B"], ["A", "C"], ["B", "D"]], | ||
"setMultimap": [["A", "B"], ["A", "C"], ["B", "D"]], | ||
"multiset": [["A", 1], ["B", 2], ["C", 3]], | ||
"sortedMultiset": [], | ||
"collectionInterface": { | ||
"@meta": "List", | ||
"value": [] | ||
}, | ||
"listInterface": ["A", "B"], | ||
"setInterface": ["A", "B"], | ||
"sortedSetInterface": ["A", "B"], | ||
"mapInterface": [["A", "AA"], ["B", "BB"]], | ||
"sortedMapInterface": [["A", "AA"], ["B", "BB"]], | ||
"biMapInterface": [["A", "AA"], ["B", "BB"]], | ||
"multimapInterface": { | ||
"@meta": "ListMultimap", | ||
"value": [["A", "B"], ["A", "C"], ["B", "D"]] | ||
}, | ||
"listMultimapInterface": [["A", "B"], ["A", "C"], ["B", "D"]], | ||
"setMultimapInterface": [["A", "B"], ["A", "C"], ["B", "D"]], | ||
"multisetInterface": [], | ||
"sortedMultisetInterface": [], | ||
"listWildExtendsT": [], | ||
"listWildExtendsNumber": [], | ||
"listWildExtendsComparable": [], | ||
"setWildExtendsT": [], | ||
"setWildExtendsNumber": [], | ||
"setWildExtendsComparable": [], | ||
"listWildBuilder1": [], | ||
"listWildBuilder2": [], | ||
"mapWildBuilder1": {}, | ||
"mapWildKey": [], | ||
"table": [["A", 1, "B"], ["A", 2, "C"], ["B", 3, "D"]] | ||
} |
File renamed without changes.
Oops, something went wrong.