FroMage / jax-doclets

Set of JavaDoc doclets for modern Java annotations APIs
http://www.lunatech-labs.com/open-source/jax-doclets
GNU Lesser General Public License v3.0
26 stars 23 forks source link

attributes rendered in json with leading @ #40

Closed antonpiatek closed 12 years ago

antonpiatek commented 12 years ago

I have just started playing with jax-doclets, and the output examples for the jaxb output are coming out with values which would be xml attributes with a leading @ in the name. e.g. XML <application isRunEnabled="xsd:boolean" ....

JSON: {'application': { '@isRunEnabled': Boolean, ....

My runtime engine (wink+jackson+jaxb on tomcat) does not render the json fields in this way (which is annoying but so be it). Is there any option or flag I can set to not describe the json fields in this way? My only other alternative is to hide the json examples, but I would quite like to show them.

FroMage commented 12 years ago

I think we've one patch due with an option for that.

FroMage commented 12 years ago

Done with -jsonconvention mapped in latest git.