This example application demonstrates how to read JSON data into objects mapped with EclipseLink JAXB.
Result
and SearchResults
classes are mapped to a subset of the JSON data returned from a Twitter querySearchResult
objectResult
is manually created and added to the query results, which are then marshalled to System.out
DateAdapter
to convert Twitter's timestamp format to a java.util.Date
To run this example, simply execute mvn
from this directory, or run a Maven build in Eclipse.
http://wiki.eclipse.org/EclipseLink/Examples/MOXy/JSON_Twitter