Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Web Services
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Web Services
rename @xmlelement name attribute? remove @xmlelement dynamically?
Stuart Swearengen
Greenhorn
Posts: 26
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Can you rename an element's name attribute?
e.g.
@XmlElement(required = true,name="test") //I want to rename the array on the fly - change the "test" output Object[][] Test = {{2.2 , 2.3, 3.3},{4.4, 5.5}}; outputs JSON like {"test":[[2.2,2.3,3.3],[4.4,5.5]]}
Lastly, can you remove a complete xmlelement? thus removing the property from the resulting json object? e.g. remove
test
completely programmatically.
thanks.
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
XMLDocument.selectNodes
JAXB Question
Struts 2 and JSON
Custom result type reference is causing my deploy to fail
java.lang.StackOverflowError on using RequestDispatcher forward
More...