Handle undefined in util.showJSON + Change parameter order

showJSON(json, depth, indent)