Win a copy of Head First Android this week in the Android forum!
  • 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 ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Al Hobbs
  • salvin francis

Difficulty in generating JSON using jsonschema2pojo maven plugin

Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have JSON schema as follows

Which is saved as ExampleResponse.jss . Using 'jsonschema2pojo' maven plugin, i generated POJO class from this schema.
Using this class I am trying to create a JSON response and the expected output response should be { "example":{ "age":68 } }
Since the Generated POJO is class Example{ ..... } output Response i am getting is { "Example":{ "age":68 } }

How I can achieve desired response in which i have lower case 'example' word.
    Bookmark Topic Watch Topic
  • New Topic