Community
Participate
Working Groups
Add support for converting objects to/from JSON using JAXB & MOXy metadata. JAXBContext jc = JAXBContext.newInstance(Customer.class); Unmarshaller unmarshaller = jc.createUnmarshaller(); unmarshaller.setProperty("eclipselink.media.type", "application/json"); File json = new File("src/demo/json/input.json"); Customer customer = (Customer) unmarshaller.unmarshal(json); Marshaller marshaller = jc.createMarshaller(); marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); marshaller.setProperty("eclipselink.media.type", "application/json"); marshaller.marshal(customer, System.out);
Created attachment 200608 [details] Test cases and a few small changes
Created attachment 201146 [details] Test cases and another small change
Created attachment 202169 [details] Support mediatype as JAXBContext property
Created attachment 202171 [details] Support mediatype as JAXBContext property
Created attachment 206430 [details] New test cases and minor changes
Created attachment 209846 [details] More test cases
Created attachment 216075 [details] Additional testing
Support for object to JSON has been added to eclipselink 2.4
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink