Action Jackson! Effective JSON processing in Spring Boot Applications by Joris Kuipers @ Spring I/O

Поділитися
Вставка
  • Опубліковано 12 чер 2023
  • Spring I/O 2023 - Barcelona, 18-19 May
    Slides: www.slideshare.net/jkuipers/a...
    GitLab repo: gitlab.trifork.nl/jorisk/acti...
    JSON processing plays an important role in nearly all applications nowadays, and Jackson is the de-facto standard library for that. Most developers are therefore familiar with using it for simple (un)marshalling purposes, but never go beyond the basics. In this session Joris will show how to effectively configure and use Jackson, focusing on Spring Boot applications. Boot provides a lot of support for configuring ObjectMappers, which you can use directly but are also used internally by the framework for e.g. handling HTTP requests/responses or message conversion. Topics will include tuning mappings, using modules, applying views and using alternative parsing options like JSON Pointer and JsonPath, all illustrated through live demos. Don’t miss out on this presentation and become an Action Jackson yourself!
  • Наука та технологія

КОМЕНТАРІ • 16

  • @user-hy6yd2mr6m
    @user-hy6yd2mr6m 8 місяців тому

    Excellent. Thank you Joris.

  • @aman211275
    @aman211275 6 місяців тому

    Excellent talk!! I really enjoyed it. Thank you Joris!

  • @kevinnguyen163
    @kevinnguyen163 9 місяців тому

    Excellent! Thank you for such a great talk.

  • @AmitKumaarrr
    @AmitKumaarrr 10 місяців тому

    Everyone uses json, but few videos about it. Thank you so much.

  • @ivandenysenko
    @ivandenysenko 10 місяців тому

    Great talk. Thanks for sharing your experience.

  • @faelperetta
    @faelperetta 11 місяців тому

    Very good talk where whe can see the interesting options we have to customaize the JSON serialization and deserialization

  • @MohammedKamil
    @MohammedKamil 11 місяців тому

    This is a very good talk for me, who's getting introduced to java and spring boot

  • @USONOFAV
    @USONOFAV 10 місяців тому

    Does the new library passes all CVE vulnerabilities?

  •  11 місяців тому +1

    I can think on one reason to create an ObjectMapper instance without the builder: a client library (Do not want user configuration mess up your requests)

    • @Quip76
      @Quip76 11 місяців тому +1

      Yes, in the context of the talk I was referring to regular application code only: of course there are always reasons to not use Boot ;)

  • @konstantingromov6485
    @konstantingromov6485 11 місяців тому

    Great talk (e.g. I didn't know about Views - seems sort of custom graphql can be implemented using it :).
    @Joris, I have a question - is it possible to configure properly serialization/deserialization with lombok delegate feature ( lombok.experimental.Delegate) - or fields should always be present on the target class?

    • @Quip76
      @Quip76 11 місяців тому

      I'm not familiar with the particular Lombok feature, but in general I'd say that as long as you stick to property accessors (i.e. getters and setters) and constructors rather than direct field access it should all just be transparent

  • @rydmerlin
    @rydmerlin 11 місяців тому

    As you demonstrated the parameters example I was thinking what happens when folks use any kind of code obfuscation.

    • @Quip76
      @Quip76 11 місяців тому

      Obfuscation and reflection are not exactly friends, indeed: better to be explicit about everything, then

  • @rydmerlin
    @rydmerlin 10 місяців тому

    Even if you create an objectmapper in the controller. How do you ensure endpoints in that controller will use it?

    • @Quip76
      @Quip76 10 місяців тому

      It wouldn’t be very typical to do that in a controller if you rely on the framework to do the (un)marshalling for you. You’d rather configure the relevant HTTP message converter to use your custom ObjectMapper