[
https://issues.jboss.org/browse/JBIDE-11577?page=com.atlassian.jira.plugi...
]
Brian Fitzpatrick commented on JBIDE-11577:
-------------------------------------------
Here's an example of a collection handled better by the pretty printer. We didn't
handle collections in the initial implementation.
Web Service Tester: Add a JSON visualizer - tree
------------------------------------------------
Key: JBIDE-11577
URL:
https://issues.jboss.org/browse/JBIDE-11577
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: Webservices
Reporter: Burr Sutter
Assignee: Brian Fitzpatrick
Fix For: 3.3.0.Beta3
Attachments: fixed_screenshot.png, Screen Shot 2012-04-18 at 8.24.03 PM.png
With HTML5, a large percentage of JBoss-hosted services will be RESTful endpoints
providing a JSON response. The challenge is that JSON is a little hard to read. Please
see screenshot.
@Path("/events")
@RequestScoped
public class EventService {
@Inject
private EntityManager em;
@GET
@Produces(MediaType.APPLICATION_JSON)
public List<Event> getAllEvents() {
final List<Event> results = em.createQuery("select e from Event e order by
e.name").getResultList();
return results;
}
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira