I have been doing web development by 2 years now, mostly with a Java EE and 
Spring stack. My current project involves a front-end in reactJS + REST 
back-end (spring, java, hibernate) where Jackson is the one responsible for 
parsing the data passed between front and back ends. This is the first time 
I use reactJS instead of server side rendering templates like JSP or 
Thymeleaf and I am actually enjoying it, mainly because front-end code is 
cleaner.  But one thing that now makes me waste a lot of time is to have to 
exactly spell the JSON fields in React equal to the ones defined in Java 
objects. For example if I am posting a Json from react that has a field 
named 'person_name', the REST service receives the JSON and via Jackson 
tries to parse it to a Java object that has a field named 'personName' and 
I have a bug. Wouldn't be interesting to include a flag for fuzzy mapping? 
Like with fuzzy=true, that type of mapping would occur? This would allow 
for a nice semantic way of programming, instead of always checking between 
windows the exact spelling of the fields. Well just throwing an idea out 
there.

Joao Pinto

-- 
You received this message because you are subscribed to the Google Groups 
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to