Scala Slick plain sql to JSON without case class

I am using scala slick jdbc to retrieve rows from sql server , now the columns are dynamic , so i am not able to write case class(since the columns are not known) to convert to JSON.Can anyone help me in solving this,

Thank you

You have no idea of how the sql schema is made?
Is it totally dynamically discovered at runtime?

If that’s the case I guess you can only stick to Any values and make exhaustive pattern matches to possible JSON values, based on what makes sense for you as a translation from SQL column types to JSON.

Is the database type fixed, at least?

yes
already i have some column names and table name ,
i will be getting some more columns in runtime , which should be concatenated and executed