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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -