I am using org.json library to convert Object to Json format. Kindly check the below code snippet.
public enum JobStatus implements Serializable{ INCOMP
It seems JSONObject doesn't support enums. You could alter your Job class to add a getter like this:
JSONObject
Job
public String getStatus() { return status.name(); }
then, invoking new JSONObject(job).toString() produces:
new JSONObject(job).toString()
{"id":"12345","status":"INPROGRESS"}