• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Spring MVC jodatime localdate object format in json response

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a basic MVC application where I get data back from DB using the controller-service-dao call. The data is stored in collections (arraylist, hashmap) of pojos.

@ResponseBody in controller method definition automatically converts this list to json format. This is how my pojo class looks.



One of the objects in pojo class is of type . The json output I see in logs when I print the list using contains a very huge list of properties I don't need. Here is pretty formatted json string


How can I get only the date back in json?

I am trying to get an output that looks like this -
reply
    Bookmark Topic Watch Topic
  • New Topic