You need to tell Spray how it should serialize your case class.
Just configure something like
object JsonSupport {
implicit val formatConfigResults = jsonFormat3(ConfigResults)
}
The number in jsonFormat'number' stands for the number of members in your case class.
Then you just need to import into your route, the class where you define this implicit.
import JsonSupport._