allow hiding of attributes on json_encode