diff options
author | Kseniya Tomskikh <ktomskih@datamonsters.co> | 2018-04-10 15:20:54 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-10 15:20:54 +0700 |
commit | f7c3184c0932db90eaae266e1518f94076ce5912 (patch) | |
tree | 2cdfed89d16e276a429541e2c617818c167c0055 /src/main | |
parent | b68e600258717bb6711e34aa427340ef304ef357 (diff) | |
parent | d8efae196da1171ba730f01ec36d2cdb8824e939 (diff) | |
download | driver-core-1.8.19.tar.gz driver-core-1.8.19.tar.bz2 driver-core-1.8.19.zip |
Merge pull request #152 from drivergroup/fix-id-formatv1.8.19
Fixed id json format
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/scala/xyz/driver/core/json.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/xyz/driver/core/json.scala b/src/main/scala/xyz/driver/core/json.scala index e7efce6..2d912d8 100644 --- a/src/main/scala/xyz/driver/core/json.scala +++ b/src/main/scala/xyz/driver/core/json.scala @@ -34,7 +34,7 @@ object json { } } - implicit def idFormat[T]: JsonFormat[Id[T]] = new JsonFormat[Id[T]] { + implicit def idFormat[T]: RootJsonFormat[Id[T]] = new RootJsonFormat[Id[T]] { def write(id: Id[T]) = JsString(id.value) def read(value: JsValue): Id[T] = value match { |