diff options
author | Mathias <mathias@spray.cc> | 2011-11-30 15:46:17 +0100 |
---|---|---|
committer | Mathias <mathias@spray.cc> | 2011-11-30 15:46:17 +0100 |
commit | 33a8d6f7343a11845ea19bf91a3ac78224f5157a (patch) | |
tree | 2c3258f99c3d07f8215b3006087934801dc662c0 /src/main/scala/cc/spray/json/JsonFormat.scala | |
parent | 98e26a2db23ebf0933d7cb5ce138069e41271fde (diff) | |
download | spray-json-33a8d6f7343a11845ea19bf91a3ac78224f5157a.tar.gz spray-json-33a8d6f7343a11845ea19bf91a3ac78224f5157a.tar.bz2 spray-json-33a8d6f7343a11845ea19bf91a3ac78224f5157a.zip |
Introduce RootJsonFormat
Diffstat (limited to 'src/main/scala/cc/spray/json/JsonFormat.scala')
-rw-r--r-- | src/main/scala/cc/spray/json/JsonFormat.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/scala/cc/spray/json/JsonFormat.scala b/src/main/scala/cc/spray/json/JsonFormat.scala index c5bc53e..01b9f80 100644 --- a/src/main/scala/cc/spray/json/JsonFormat.scala +++ b/src/main/scala/cc/spray/json/JsonFormat.scala @@ -51,3 +51,9 @@ object JsonWriter { * Provides the JSON deserialization and serialization for type T. */ trait JsonFormat[T] extends JsonReader[T] with JsonWriter[T] + +/** + * A special JsonFormat signaling that the format produces a legal JSON root object, i.e. either a JSON array + * or a JSON object. + */ +trait RootJsonFormat[T] extends JsonFormat[T]
\ No newline at end of file |