Handle interfaces in JSON marshaling