how to print out to console from jsonfile code example Example: pretty print json in console new JSONObject(json).toString(2)