Cómo convertir un objeto de propiedades en un objeto JSON con JAXB
Quiero aceptar y responder objetos JSON en una aplicación REST. Los datos que necesito enviar y recibir están en un archivo .properties. Ya los he leído y ahora estoy en unProperties
Objeto (dejava.util.Properties
) ¿Hay alguna manera de reunir y desmarcarProperties
Objetos, sin implementar una nueva clase?
Estoy usando la API Jax-rs en un servidor Weblogic.
@POST
@Path("{id}")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public JSONObject getbyID(@PathParam("id")JSONObject inputJsonObj) {
//marshalling and unmarshalling goes here
}