tree: f96c130edf2d4f27ba08a876dd3854bc8ef7741e [path history] [tgz]
  1. .classpath
  2. .project
  3. .settings/
  5. pom.xml
  6. src/

EclipseLink MOXy Twitter Example

This example application demonstrates how to read JSON data into objects mapped with EclipseLink JAXB.

  • Using standard JAXB APIs, Result and SearchResults classes are mapped to a subset of the JSON data returned from a Twitter query
  • Query is executed by using a Twitter Search URL (e.g.
  • Incoming JSON is unmarshalled to a SearchResult object
  • An new Result is manually created and added to the query results, which are then marshalled to System.out
  • This example also uses a 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.