java - Migrate from org.json to Jackson in NetBeans Project? -
i have simple client application uses json/rest communication. simple, include org.json in project, , use api:
import org.json.jsonobject; import org.json.jsonexception; jsonobject jo = new jsonobject(); try { jo.put("user", "john"); jo.put("order", "pizza"); } catch (jsonexception e) { e.printstacktrace(); } jo.tostring();
i migrate approach jackson. how simple steps? thanks.
note: don't need instruction "how add lib project". information libs need object-to-json , json-to-object, , how can use magic of jackson in real life example.
add jackson.jar in project in netbeans doing:
file -> project properties -> libraries -> run-time libraries
Comments
Post a Comment