only show appropriate fields in json output