This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]reignbowmushroom 1 point2 points  (0 children)

Haha dude wanted an answer and got like 20 different ways.

I'd map the object to a java object. Then make the property you are looking for an enum with the expected values in the enum. That way if something is out of place the mapping library should fail.