spray/spray — Issue #54: Constrain SprayJsonSupport to types that produce JSON objects or arrays
Author: sirthias
Created: 2011-11-01 22:07:16+00:00
State: open
Labels: Improvement

Currently a `_.complete("hello")` fails with an ambiguous implicits error when a JsonProtocol and SprayJsonSupport are in scope. However, since a JSON string cannot legally be the root object of a JSON document the sprayJsonMarshaller should not actually be available in this case.