public class JacksonExample extends Object
Note:
| Modifier and Type | Field and Description |
|---|---|
static String |
exampleFile |
static String |
exampleUnknownAttributesFile |
static String |
schema3File |
static String |
schema4File |
| Constructor and Description |
|---|
JacksonExample() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
void |
readExampleJson() |
void |
readFileWithUnkownAttributes() |
void |
writeExampleJson() |
void |
writeSchemav3() |
void |
writeSchemav4() |
public static final String schema3File
public static final String schema4File
public static final String exampleFile
public static final String exampleUnknownAttributesFile
public static void main(String[] args) throws com.fasterxml.jackson.core.JsonGenerationException, com.fasterxml.jackson.databind.JsonMappingException, IOException
com.fasterxml.jackson.core.JsonGenerationExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionpublic void writeExampleJson()
throws com.fasterxml.jackson.core.JsonGenerationException,
com.fasterxml.jackson.databind.JsonMappingException,
IOException
com.fasterxml.jackson.core.JsonGenerationExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionpublic void readExampleJson()
throws com.fasterxml.jackson.core.JsonParseException,
com.fasterxml.jackson.databind.JsonMappingException,
IOException
com.fasterxml.jackson.core.JsonParseExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionpublic void readFileWithUnkownAttributes()
throws com.fasterxml.jackson.core.JsonParseException,
com.fasterxml.jackson.databind.JsonMappingException,
IOException
com.fasterxml.jackson.core.JsonParseExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionpublic void writeSchemav3()
throws com.fasterxml.jackson.core.JsonGenerationException,
IOException
com.fasterxml.jackson.core.JsonGenerationExceptionIOExceptionpublic void writeSchemav4()
throws com.fasterxml.jackson.core.JsonGenerationException,
IOException
com.fasterxml.jackson.core.JsonGenerationExceptionIOExceptionCopyright © 2018. All rights reserved.