Unable to unmarshal LocalDate and LocalTime class using JacksonJava inner class and static nested classJackson with JSON: Unrecognized field, not marked as ignorableIgnoring new fields on JSON objects using JacksonHow to use Jackson to deserialise an array of objectsJax-rs unmarshal json - custom typeStatic Classes In JavaShould akka http try to end an incoming HTTP POST request which has specified Expect: 100-continue where there is any backpressure in the system?How to send a file and json payload together in Post Request with akka-httpAkka Http Segment in the route path is not working as expected

Why was the Sega Genesis marketed as a 16-bit console?

What is wrong with this proof that symmetric matrices commute?

Compiling c files on ubuntu and using the executable on Windows

What can plausibly explain many of my very long and low-tech bridges?

Movie about a boy who was born old and grew young

Why would future John risk sending back a T-800 to save his younger self?

What does the term "railed" mean in signal processing?

Is it possible to 'live off the sea'

Should an arbiter claim draw at a K+R vs K+R endgame?

How Can I Tell The Difference Between Unmarked Sugar and Stevia?

Trapping Rain Water

Why doesn’t a normal window produce an apparent rainbow?

Was the Tamarian language in "Darmok" inspired by Jack Vance's "The Asutra"?

Comparing and find out which feature has highest shape area in QGIS?

PhD - Well known professor or well known school?

How to retract an idea already pitched to an employer?

How to build suspense or so to establish and justify xenophobia of characters in the eyes of the reader?

Can Platform License Users access the Standard Order Object?

When conversion from Integer to Single may lose precision

What's the name of this light airplane?

How do I write "Show, Don't Tell" as a person with Asperger Syndrome?

How to tell your grandparent to not come to fetch you with their car?

How does an ordinary object become radioactive?

What's up with this leaf?



Unable to unmarshal LocalDate and LocalTime class using Jackson


Java inner class and static nested classJackson with JSON: Unrecognized field, not marked as ignorableIgnoring new fields on JSON objects using JacksonHow to use Jackson to deserialise an array of objectsJax-rs unmarshal json - custom typeStatic Classes In JavaShould akka http try to end an incoming HTTP POST request which has specified Expect: 100-continue where there is any backpressure in the system?How to send a file and json payload together in Post Request with akka-httpAkka Http Segment in the route path is not working as expected






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I'm making a POST route using akka, where I'm deserializing my Json data into Video object, but the following curl request:



curl -H "Content-Type: application/json" -X POST -d '"title": "Video Title","videoDate":"10-2-2018","videoTime":"12:10:11"' http://localhost:9090/updatedData


gives an error: Cannot unmarshal JSON as Video



The request works fine when I remove videoDate and videoTime fields from json.



Jackson.unmarshaller(VideoInfo.class)



//Video.class
public class Video
private String title;
private LocalDate videoDate;
private LocalTime videoTime;



The maven dependency used is



<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.9.8</version>
</dependency>


Here's my route /updatedData



post(() ->
path("updatedData", () ->
LOGGER.info("calling POST /updatedData");
return entity(Jackson.unmarshaller(Video.class), videoInfo ->
LOGGER.debug("Payload received : " + videoInfo.toString());
ArrayList<HttpHeader> headers = getCORSHeaders();
return respondWithHeaders(headers, () ->
onSuccess(videoFrameProcessing.updateVideoInfo(videoInfo), this::complete));
);
)),









share|improve this question
























  • Please post the full exception stacktrace, also which Jackson dependencies do you use (support for LocalDate and LocalTime requires the jackson-datatype-jsr310 dependency)

    – Mark Rotteveel
    Mar 24 at 16:34











  • The ISO format for LocalDate would be 2018-02-10 (if the 2 is the month in your example).

    – JB Nizet
    Mar 24 at 16:35











  • See answer, you need to add that Java 8 Time API module. Also the format might be a problem.

    – LppEdd
    Mar 24 at 16:44












  • @MarkRotteveel I'm getting the error information by making the curl request on the route.

    – Yatharth7
    Mar 24 at 16:49


















1















I'm making a POST route using akka, where I'm deserializing my Json data into Video object, but the following curl request:



curl -H "Content-Type: application/json" -X POST -d '"title": "Video Title","videoDate":"10-2-2018","videoTime":"12:10:11"' http://localhost:9090/updatedData


gives an error: Cannot unmarshal JSON as Video



The request works fine when I remove videoDate and videoTime fields from json.



Jackson.unmarshaller(VideoInfo.class)



//Video.class
public class Video
private String title;
private LocalDate videoDate;
private LocalTime videoTime;



The maven dependency used is



<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.9.8</version>
</dependency>


Here's my route /updatedData



post(() ->
path("updatedData", () ->
LOGGER.info("calling POST /updatedData");
return entity(Jackson.unmarshaller(Video.class), videoInfo ->
LOGGER.debug("Payload received : " + videoInfo.toString());
ArrayList<HttpHeader> headers = getCORSHeaders();
return respondWithHeaders(headers, () ->
onSuccess(videoFrameProcessing.updateVideoInfo(videoInfo), this::complete));
);
)),









share|improve this question
























  • Please post the full exception stacktrace, also which Jackson dependencies do you use (support for LocalDate and LocalTime requires the jackson-datatype-jsr310 dependency)

    – Mark Rotteveel
    Mar 24 at 16:34











  • The ISO format for LocalDate would be 2018-02-10 (if the 2 is the month in your example).

    – JB Nizet
    Mar 24 at 16:35











  • See answer, you need to add that Java 8 Time API module. Also the format might be a problem.

    – LppEdd
    Mar 24 at 16:44












  • @MarkRotteveel I'm getting the error information by making the curl request on the route.

    – Yatharth7
    Mar 24 at 16:49














1












1








1








I'm making a POST route using akka, where I'm deserializing my Json data into Video object, but the following curl request:



curl -H "Content-Type: application/json" -X POST -d '"title": "Video Title","videoDate":"10-2-2018","videoTime":"12:10:11"' http://localhost:9090/updatedData


gives an error: Cannot unmarshal JSON as Video



The request works fine when I remove videoDate and videoTime fields from json.



Jackson.unmarshaller(VideoInfo.class)



//Video.class
public class Video
private String title;
private LocalDate videoDate;
private LocalTime videoTime;



The maven dependency used is



<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.9.8</version>
</dependency>


Here's my route /updatedData



post(() ->
path("updatedData", () ->
LOGGER.info("calling POST /updatedData");
return entity(Jackson.unmarshaller(Video.class), videoInfo ->
LOGGER.debug("Payload received : " + videoInfo.toString());
ArrayList<HttpHeader> headers = getCORSHeaders();
return respondWithHeaders(headers, () ->
onSuccess(videoFrameProcessing.updateVideoInfo(videoInfo), this::complete));
);
)),









share|improve this question
















I'm making a POST route using akka, where I'm deserializing my Json data into Video object, but the following curl request:



curl -H "Content-Type: application/json" -X POST -d '"title": "Video Title","videoDate":"10-2-2018","videoTime":"12:10:11"' http://localhost:9090/updatedData


gives an error: Cannot unmarshal JSON as Video



The request works fine when I remove videoDate and videoTime fields from json.



Jackson.unmarshaller(VideoInfo.class)



//Video.class
public class Video
private String title;
private LocalDate videoDate;
private LocalTime videoTime;



The maven dependency used is



<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.9.8</version>
</dependency>


Here's my route /updatedData



post(() ->
path("updatedData", () ->
LOGGER.info("calling POST /updatedData");
return entity(Jackson.unmarshaller(Video.class), videoInfo ->
LOGGER.debug("Payload received : " + videoInfo.toString());
ArrayList<HttpHeader> headers = getCORSHeaders();
return respondWithHeaders(headers, () ->
onSuccess(videoFrameProcessing.updateVideoInfo(videoInfo), this::complete));
);
)),






java json akka unmarshalling akka-http






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 24 at 17:00







Yatharth7

















asked Mar 24 at 16:29









Yatharth7Yatharth7

437




437












  • Please post the full exception stacktrace, also which Jackson dependencies do you use (support for LocalDate and LocalTime requires the jackson-datatype-jsr310 dependency)

    – Mark Rotteveel
    Mar 24 at 16:34











  • The ISO format for LocalDate would be 2018-02-10 (if the 2 is the month in your example).

    – JB Nizet
    Mar 24 at 16:35











  • See answer, you need to add that Java 8 Time API module. Also the format might be a problem.

    – LppEdd
    Mar 24 at 16:44












  • @MarkRotteveel I'm getting the error information by making the curl request on the route.

    – Yatharth7
    Mar 24 at 16:49


















  • Please post the full exception stacktrace, also which Jackson dependencies do you use (support for LocalDate and LocalTime requires the jackson-datatype-jsr310 dependency)

    – Mark Rotteveel
    Mar 24 at 16:34











  • The ISO format for LocalDate would be 2018-02-10 (if the 2 is the month in your example).

    – JB Nizet
    Mar 24 at 16:35











  • See answer, you need to add that Java 8 Time API module. Also the format might be a problem.

    – LppEdd
    Mar 24 at 16:44












  • @MarkRotteveel I'm getting the error information by making the curl request on the route.

    – Yatharth7
    Mar 24 at 16:49

















Please post the full exception stacktrace, also which Jackson dependencies do you use (support for LocalDate and LocalTime requires the jackson-datatype-jsr310 dependency)

– Mark Rotteveel
Mar 24 at 16:34





Please post the full exception stacktrace, also which Jackson dependencies do you use (support for LocalDate and LocalTime requires the jackson-datatype-jsr310 dependency)

– Mark Rotteveel
Mar 24 at 16:34













The ISO format for LocalDate would be 2018-02-10 (if the 2 is the month in your example).

– JB Nizet
Mar 24 at 16:35





The ISO format for LocalDate would be 2018-02-10 (if the 2 is the month in your example).

– JB Nizet
Mar 24 at 16:35













See answer, you need to add that Java 8 Time API module. Also the format might be a problem.

– LppEdd
Mar 24 at 16:44






See answer, you need to add that Java 8 Time API module. Also the format might be a problem.

– LppEdd
Mar 24 at 16:44














@MarkRotteveel I'm getting the error information by making the curl request on the route.

– Yatharth7
Mar 24 at 16:49






@MarkRotteveel I'm getting the error information by making the curl request on the route.

– Yatharth7
Mar 24 at 16:49













1 Answer
1






active

oldest

votes


















0














Jackson requires an additional module for the Java 8 Time API.

The module



jackson-datatype-jsr310


has been deprecated and is now part of



jackson-modules-java8



<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>2.9.8</version>
</dependency>


Which means you need to register that module manually



final ObjectMapper objectMapper = new ObjectMapper();
objectMapper.registerModule(new JavaTimeModule());



The Akka Jackson class offers an overloaded version of unmarshaller, which you can use to pass a customized version of ObjectMapper



public static <T> Unmarshaller<HttpEntity, T> unmarshaller(ObjectMapper mapper, Class<T> expectedType) 
return Unmarshaller.forMediaType(MediaTypes.APPLICATION_JSON, Unmarshaller.entityToString())
.thenApply(s -> fromJSON(mapper, s, expectedType));



So, instead of



Jackson.unmarshaller(Video.class)


use



Jackson.unmarshaller(objectMapper, Video.class);


The objectMapper parameter is the custom ObjectMapper



final ObjectMapper objectMapper = new ObjectMapper();
objectMapper.registerModule(new JavaTimeModule());



The complete snippet would be



post(() ->
path("updatedData", () ->
LOGGER.info("calling POST /updatedData");

final ObjectMapper objectMapper = new ObjectMapper();
objectMapper.registerModule(new JavaTimeModule());

return entity(Jackson.unmarshaller(objectMapper, Video.class), videoInfo ->
LOGGER.debug("Payload received : " + videoInfo.toString());
ArrayList<HttpHeader> headers = getCORSHeaders();
return respondWithHeaders(headers, () ->
onSuccess(videoFrameProcessing.updateVideoInfo(videoInfo), this::complete));
);
)),


Obviously, extract the ObjectMapper as a "global" variable.






share|improve this answer

























  • I wasn't using any object mapper before. Please tell me how to proceed with object mapper as I'm just a beginner performing unmarshalling.

    – Yatharth7
    Mar 24 at 16:53











  • @Yatharth7 can you post the code which deserializes the response? Or is it just a CURL call?

    – LppEdd
    Mar 24 at 16:56











  • Its just a curl call.

    – Yatharth7
    Mar 24 at 16:57











  • @Yatharth7 and what's that "Jackson.unmarshaller(VideoInfo.class)" in your question?

    – LppEdd
    Mar 24 at 17:00











  • That's the route, I've added that in question now

    – Yatharth7
    Mar 24 at 17:02











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55325977%2funable-to-unmarshal-localdate-and-localtime-class-using-jackson%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Jackson requires an additional module for the Java 8 Time API.

The module



jackson-datatype-jsr310


has been deprecated and is now part of



jackson-modules-java8



<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>2.9.8</version>
</dependency>


Which means you need to register that module manually



final ObjectMapper objectMapper = new ObjectMapper();
objectMapper.registerModule(new JavaTimeModule());



The Akka Jackson class offers an overloaded version of unmarshaller, which you can use to pass a customized version of ObjectMapper



public static <T> Unmarshaller<HttpEntity, T> unmarshaller(ObjectMapper mapper, Class<T> expectedType) 
return Unmarshaller.forMediaType(MediaTypes.APPLICATION_JSON, Unmarshaller.entityToString())
.thenApply(s -> fromJSON(mapper, s, expectedType));



So, instead of



Jackson.unmarshaller(Video.class)


use



Jackson.unmarshaller(objectMapper, Video.class);


The objectMapper parameter is the custom ObjectMapper



final ObjectMapper objectMapper = new ObjectMapper();
objectMapper.registerModule(new JavaTimeModule());



The complete snippet would be



post(() ->
path("updatedData", () ->
LOGGER.info("calling POST /updatedData");

final ObjectMapper objectMapper = new ObjectMapper();
objectMapper.registerModule(new JavaTimeModule());

return entity(Jackson.unmarshaller(objectMapper, Video.class), videoInfo ->
LOGGER.debug("Payload received : " + videoInfo.toString());
ArrayList<HttpHeader> headers = getCORSHeaders();
return respondWithHeaders(headers, () ->
onSuccess(videoFrameProcessing.updateVideoInfo(videoInfo), this::complete));
);
)),


Obviously, extract the ObjectMapper as a "global" variable.






share|improve this answer

























  • I wasn't using any object mapper before. Please tell me how to proceed with object mapper as I'm just a beginner performing unmarshalling.

    – Yatharth7
    Mar 24 at 16:53











  • @Yatharth7 can you post the code which deserializes the response? Or is it just a CURL call?

    – LppEdd
    Mar 24 at 16:56











  • Its just a curl call.

    – Yatharth7
    Mar 24 at 16:57











  • @Yatharth7 and what's that "Jackson.unmarshaller(VideoInfo.class)" in your question?

    – LppEdd
    Mar 24 at 17:00











  • That's the route, I've added that in question now

    – Yatharth7
    Mar 24 at 17:02















0














Jackson requires an additional module for the Java 8 Time API.

The module



jackson-datatype-jsr310


has been deprecated and is now part of



jackson-modules-java8



<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>2.9.8</version>
</dependency>


Which means you need to register that module manually



final ObjectMapper objectMapper = new ObjectMapper();
objectMapper.registerModule(new JavaTimeModule());



The Akka Jackson class offers an overloaded version of unmarshaller, which you can use to pass a customized version of ObjectMapper



public static <T> Unmarshaller<HttpEntity, T> unmarshaller(ObjectMapper mapper, Class<T> expectedType) 
return Unmarshaller.forMediaType(MediaTypes.APPLICATION_JSON, Unmarshaller.entityToString())
.thenApply(s -> fromJSON(mapper, s, expectedType));



So, instead of



Jackson.unmarshaller(Video.class)


use



Jackson.unmarshaller(objectMapper, Video.class);


The objectMapper parameter is the custom ObjectMapper



final ObjectMapper objectMapper = new ObjectMapper();
objectMapper.registerModule(new JavaTimeModule());



The complete snippet would be



post(() ->
path("updatedData", () ->
LOGGER.info("calling POST /updatedData");

final ObjectMapper objectMapper = new ObjectMapper();
objectMapper.registerModule(new JavaTimeModule());

return entity(Jackson.unmarshaller(objectMapper, Video.class), videoInfo ->
LOGGER.debug("Payload received : " + videoInfo.toString());
ArrayList<HttpHeader> headers = getCORSHeaders();
return respondWithHeaders(headers, () ->
onSuccess(videoFrameProcessing.updateVideoInfo(videoInfo), this::complete));
);
)),


Obviously, extract the ObjectMapper as a "global" variable.






share|improve this answer

























  • I wasn't using any object mapper before. Please tell me how to proceed with object mapper as I'm just a beginner performing unmarshalling.

    – Yatharth7
    Mar 24 at 16:53











  • @Yatharth7 can you post the code which deserializes the response? Or is it just a CURL call?

    – LppEdd
    Mar 24 at 16:56











  • Its just a curl call.

    – Yatharth7
    Mar 24 at 16:57











  • @Yatharth7 and what's that "Jackson.unmarshaller(VideoInfo.class)" in your question?

    – LppEdd
    Mar 24 at 17:00











  • That's the route, I've added that in question now

    – Yatharth7
    Mar 24 at 17:02













0












0








0







Jackson requires an additional module for the Java 8 Time API.

The module



jackson-datatype-jsr310


has been deprecated and is now part of



jackson-modules-java8



<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>2.9.8</version>
</dependency>


Which means you need to register that module manually



final ObjectMapper objectMapper = new ObjectMapper();
objectMapper.registerModule(new JavaTimeModule());



The Akka Jackson class offers an overloaded version of unmarshaller, which you can use to pass a customized version of ObjectMapper



public static <T> Unmarshaller<HttpEntity, T> unmarshaller(ObjectMapper mapper, Class<T> expectedType) 
return Unmarshaller.forMediaType(MediaTypes.APPLICATION_JSON, Unmarshaller.entityToString())
.thenApply(s -> fromJSON(mapper, s, expectedType));



So, instead of



Jackson.unmarshaller(Video.class)


use



Jackson.unmarshaller(objectMapper, Video.class);


The objectMapper parameter is the custom ObjectMapper



final ObjectMapper objectMapper = new ObjectMapper();
objectMapper.registerModule(new JavaTimeModule());



The complete snippet would be



post(() ->
path("updatedData", () ->
LOGGER.info("calling POST /updatedData");

final ObjectMapper objectMapper = new ObjectMapper();
objectMapper.registerModule(new JavaTimeModule());

return entity(Jackson.unmarshaller(objectMapper, Video.class), videoInfo ->
LOGGER.debug("Payload received : " + videoInfo.toString());
ArrayList<HttpHeader> headers = getCORSHeaders();
return respondWithHeaders(headers, () ->
onSuccess(videoFrameProcessing.updateVideoInfo(videoInfo), this::complete));
);
)),


Obviously, extract the ObjectMapper as a "global" variable.






share|improve this answer















Jackson requires an additional module for the Java 8 Time API.

The module



jackson-datatype-jsr310


has been deprecated and is now part of



jackson-modules-java8



<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>2.9.8</version>
</dependency>


Which means you need to register that module manually



final ObjectMapper objectMapper = new ObjectMapper();
objectMapper.registerModule(new JavaTimeModule());



The Akka Jackson class offers an overloaded version of unmarshaller, which you can use to pass a customized version of ObjectMapper



public static <T> Unmarshaller<HttpEntity, T> unmarshaller(ObjectMapper mapper, Class<T> expectedType) 
return Unmarshaller.forMediaType(MediaTypes.APPLICATION_JSON, Unmarshaller.entityToString())
.thenApply(s -> fromJSON(mapper, s, expectedType));



So, instead of



Jackson.unmarshaller(Video.class)


use



Jackson.unmarshaller(objectMapper, Video.class);


The objectMapper parameter is the custom ObjectMapper



final ObjectMapper objectMapper = new ObjectMapper();
objectMapper.registerModule(new JavaTimeModule());



The complete snippet would be



post(() ->
path("updatedData", () ->
LOGGER.info("calling POST /updatedData");

final ObjectMapper objectMapper = new ObjectMapper();
objectMapper.registerModule(new JavaTimeModule());

return entity(Jackson.unmarshaller(objectMapper, Video.class), videoInfo ->
LOGGER.debug("Payload received : " + videoInfo.toString());
ArrayList<HttpHeader> headers = getCORSHeaders();
return respondWithHeaders(headers, () ->
onSuccess(videoFrameProcessing.updateVideoInfo(videoInfo), this::complete));
);
)),


Obviously, extract the ObjectMapper as a "global" variable.







share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 24 at 17:16

























answered Mar 24 at 16:37









LppEddLppEdd

10.3k31849




10.3k31849












  • I wasn't using any object mapper before. Please tell me how to proceed with object mapper as I'm just a beginner performing unmarshalling.

    – Yatharth7
    Mar 24 at 16:53











  • @Yatharth7 can you post the code which deserializes the response? Or is it just a CURL call?

    – LppEdd
    Mar 24 at 16:56











  • Its just a curl call.

    – Yatharth7
    Mar 24 at 16:57











  • @Yatharth7 and what's that "Jackson.unmarshaller(VideoInfo.class)" in your question?

    – LppEdd
    Mar 24 at 17:00











  • That's the route, I've added that in question now

    – Yatharth7
    Mar 24 at 17:02

















  • I wasn't using any object mapper before. Please tell me how to proceed with object mapper as I'm just a beginner performing unmarshalling.

    – Yatharth7
    Mar 24 at 16:53











  • @Yatharth7 can you post the code which deserializes the response? Or is it just a CURL call?

    – LppEdd
    Mar 24 at 16:56











  • Its just a curl call.

    – Yatharth7
    Mar 24 at 16:57











  • @Yatharth7 and what's that "Jackson.unmarshaller(VideoInfo.class)" in your question?

    – LppEdd
    Mar 24 at 17:00











  • That's the route, I've added that in question now

    – Yatharth7
    Mar 24 at 17:02
















I wasn't using any object mapper before. Please tell me how to proceed with object mapper as I'm just a beginner performing unmarshalling.

– Yatharth7
Mar 24 at 16:53





I wasn't using any object mapper before. Please tell me how to proceed with object mapper as I'm just a beginner performing unmarshalling.

– Yatharth7
Mar 24 at 16:53













@Yatharth7 can you post the code which deserializes the response? Or is it just a CURL call?

– LppEdd
Mar 24 at 16:56





@Yatharth7 can you post the code which deserializes the response? Or is it just a CURL call?

– LppEdd
Mar 24 at 16:56













Its just a curl call.

– Yatharth7
Mar 24 at 16:57





Its just a curl call.

– Yatharth7
Mar 24 at 16:57













@Yatharth7 and what's that "Jackson.unmarshaller(VideoInfo.class)" in your question?

– LppEdd
Mar 24 at 17:00





@Yatharth7 and what's that "Jackson.unmarshaller(VideoInfo.class)" in your question?

– LppEdd
Mar 24 at 17:00













That's the route, I've added that in question now

– Yatharth7
Mar 24 at 17:02





That's the route, I've added that in question now

– Yatharth7
Mar 24 at 17:02



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55325977%2funable-to-unmarshal-localdate-and-localtime-class-using-jackson%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript