Created attachment 629549 [details] Actual response Description of problem: There are inconsistencies between some names of elements in JSON representation and XML representation. For example, under /api/capabilities, we have the <power_managers> object, which has <power_management> sub object. You would expect in JSON to have a "powerManagers" option which has an array called "powerManagements", but instead the array is named "powerManagers" as well. I am attaching the response I have and a JSON dump of the parsed XML object, which should be similar to how the response should be like if it was consistent with XML names.
Created attachment 629550 [details] JSON dump that should be close to the expected response
This bug currently blocks our JSON format support automation.
the problem for facing naming-convention issues in json cause jaxb using xmlelement field names, while json-provider actual field names, what is creating naming inconsistency between xml and json representations, (there is workaround using another provider, but it has own issues, it produces output that cannot be used as is when send it back to the server).
*** This bug has been marked as a duplicate of bug 652883 ***