You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the above example PriceDetail bean gets replaced by the Bean PriceDetails.
If you rename the Json(inner) PriceDetail to Price_Details(or anything else) you will notice the difference.
Thank you for assisting, kindly comment if you need more info.
I am using the Command Line
jsonschema2pojo -a JACKSON2 --source sourceJson -t output -T JSON -E -S -p com.T.retail -P
From [email protected] on March 18, 2013 19:00:05
Ravi, sorry if the above comment wasn't clear. I've made some code changes to fix this problem, and they will be released in version 0.3.6.
If you want to try this sooner, you could build a snapshot version from the current master.
Original author: [email protected] (March 06, 2013 12:33:06)
Please consider the example below, PriceDetails is creating a bean class PriceDetail and overwriting the inner PriceDetail Bean class file
{
"priceDetails": [
{
"description" : "TEST",
"PriceDetail" : {"amount" : 300, "code" : "USD"}
}
{......}
}
I am using the Command Line
jsonschema2pojo -a JACKSON2 --source sourceJson -t output -T JSON -E -S -p com.T.retail -P
I am Using the Latest Version of the Lib (0.3.5)
Kindly mail me if you need more details.
Thank you,
Ravi.
(Its really nice piece of tool).
Original issue: http://code.google.com/p/jsonschema2pojo/issues/detail?id=93
The text was updated successfully, but these errors were encountered: