https://github.com/messagemedia/mm-jackson-support
MessageMedia Utility Classes for Jackson
https://github.com/messagemedia/mm-jackson-support
jackson java json
Last synced: 2 months ago
JSON representation
MessageMedia Utility Classes for Jackson
- Host: GitHub
- URL: https://github.com/messagemedia/mm-jackson-support
- Owner: messagemedia
- License: apache-2.0
- Created: 2018-05-02T07:11:33.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-04T01:32:41.000Z (about 8 years ago)
- Last Synced: 2025-04-02T02:46:32.182Z (about 1 year ago)
- Topics: jackson, java, json
- Language: Java
- Homepage: https://developers.messagemedia.com/
- Size: 21.5 KB
- Stars: 2
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# MessageMedia Utility Classes for Jackson
[](https://travis-ci.org/messagemedia/mm-jackson-support)
This repo contains utility/helper classes for Jackson, a Java JSON library.
## Currently it contains the following modules:
### jackson-support-core
This includes only classes which work with the core Jackson and have no further dependencies.
#### ValueWithNull
This class allows you to distinguish between an explicit null in the JSON and an absent value.
```
public class MyBean {
@JsonProperty("foobar")
public ValueWithNull foobar;
...
}
```
- JSON ````{}```` => foobar is null
- JSON ````{ "foobar" : null }```` => foobar.isExplicitNull() is true
- JSON ````{ "foobar" : "bla" }```` => foobar.get() returns bla
## Compatibility issues
- Currently there are no known issues with any version other than the specified one in the pom. But please test carefully if you are using another version.
## Installation
### Maven
TODO upload to maven central