[json serializer] considering interface