title: PropertyException when setting Marshaller property with eclipselink.media-type value: application/json
body: <p>I'm attempting to follow the example located <a href="https://stackoverflow.com/questions/7725188/how-to-use-of-xmlgregoriancalendar-with-fromjson-and-tojson-methods-of-gson">here</a> but get an javax.xml.bind.PropertyException.  I receive this exception because of the following line of code: </p>
  
  <pre><code>marshaller.setProperty("eclipselink.media-type", "application/json");
  </code></pre>
  
  <p>I have literally copy/pasted the example listed above so my code is exactly what you see there.  Searching SO and Google for this has not been helpful, and thought I'd bring this to the geniuses at SO for some help.  Any help would be most appreciated, (de)serialization with JSON and XML with json.org, Jackson, and JAXB has turned into a black and bottomless pit that has consumed almost a month of my life.</p>
  
  <p>My first impression was that I wasn't properly specifying the eclipselink runtime <a href="http://www.eclipse.org/eclipselink/documentation/2.4/moxy/runtime001.htm#CACFEGHC" rel="nofollow noreferrer">(as described here)</a> but that didn't produce a solution.  </p>
  
  <p>Stacktrace:</p>
  
  <pre><code>Exception in thread "main" javax.xml.bind.PropertyException: name: eclipselink.media-type value: application/json   
    at org.eclipse.persistence.jaxb.JAXBMarshaller.setProperty(JAXBMarshaller.java:528)
    at com.dualoutput.DualOutput.main(DualOutput.java:20)
  </code></pre>
  
  <p><a href="https://www.sugarsync.com/pf/D7626132_721_937110172" rel="nofollow noreferrer">SSCCE</a></p>