The [spray] object only accepts lists (which in max means lists of numbers). Look at the reference page to see details of what you can send to the object. As Johan said: [route] is definitely the way to go.