cli: Print values as JSON instead of using pprint