How to Convert a Properties Object to JSON Object with JAXB
问题 I want to accept and respond JSON objects in a REST Application. The data I need to send and receive are in a .properties file. I have already read them and are now in a Properties Object(From java.util.Properties ). Is there a way to marshal and unmarshal Properties Objects, without implementing a new class? I am using Jax-rs API in a Weblogic server. @POST @Path("{id}") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public JSONObject getbyID(@PathParam("id"