server: support slices
Merge pull request #842 from mrocklin/server-slice-json

server: support slices