Should we use an automatic GSON show?



  • In fact, the question is, is it more efficient to use the caste Gsons of the POJOs or to make it easier to use automatic accelerators available in the Gson (of course, where no special accentuation is required)?

    The same question goes to Jackson (not working with him, but as far as I'm concerned, there's a similar issue.



  • It's up to you. But using ready solutions.gsonjackson You get:

    1. It's a "box" solution. Time for development
    2. Used interfaces to use both existing and self-written versions of a seriesing/degradation solution for "not normal" cases
    3. Lots of literature and forums where you can find a solution

    The use of your caste class will depend on how you do it.
    Most likely, of course, they'll be a little less effective, because if you didn't have to jump off, you wouldn't.
    But in fact, if you do it properly, you won't feel the difference.

    P. S.: We are often used in the course of the work to transform, for example, the formats of the dates, the data transliteration for the end-user. There was no problem. Productivity measurements, if different, per milliseconds or less




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2