-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Maven Build Process + Readme changes
- Loading branch information
Showing
5 changed files
with
107 additions
and
4 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
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,28 @@ | ||
## Overview | ||
|
||
This module extends the functionalities of jackson-jr adding support for LocalDateTime. | ||
|
||
### Example | ||
|
||
```java | ||
import com.fasterxml.jackson.jr.extension.datetime.JacksonLocalDateTimeExtension; | ||
import com.fasterxml.jackson.jr.ob.JSON; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
class Application { | ||
private static final JSON JACKSON = JSON.builder() | ||
.register(new JacksonLocalDateTimeExtension()) | ||
.build(); | ||
|
||
public static void main(String[] args) { | ||
// Create the class that we need to | ||
final LocalDateTime now = LocalDateTime.now(); | ||
MyClass myObject = new MyClass(now, 'Some Other Values....'); | ||
String myObjectJsonString = JACKSON.asString(myObject); | ||
MyClass myObjectFromJson = JACKSON.beanFrom(MyClass, myObjectJsonString); | ||
assert myObjectFromJson.time == now; | ||
} | ||
|
||
} | ||
``` |
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
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,8 @@ | ||
This copy of Jackson-jr library is licensed under the | ||
Apache (Software) License, version 2.0 ("the License"). | ||
See the License for details about distribution rights, and the | ||
specific rights regarding derivative works. | ||
|
||
You may obtain a copy of the License at: | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 |
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,17 @@ | ||
# Jackson JSON processor | ||
|
||
Jackson is a high-performance, Free/Open Source JSON processing library. | ||
It was originally written by Tatu Saloranta (tatu.saloranta@iki.fi), and has | ||
been in development since 2007. | ||
It is currently developed by a community of developers. | ||
|
||
## Licensing | ||
|
||
Jackson components are licensed under Apache (Software) License, version 2.0, | ||
as per accompanying LICENSE file. | ||
|
||
## Credits | ||
|
||
A list of contributors may be found from CREDITS file, which is included | ||
in some artifacts (usually source distributions); but is always available | ||
from the source code management (SCM) system project uses. |