Add JSONValue and JSONCodec.unparseValue()
[yangtools.git] / codec / yang-data-codec-gson / src / main / java / org / opendaylight / yangtools / yang / data / codec / gson / EmptyJSONCodec.java
index 46f33cb2d3d1ae0a96090e91374a46006797a10b..4a6d8b810988b357c0194cb31743eb28e64f9d56 100644 (file)
@@ -27,6 +27,11 @@ final class EmptyJSONCodec implements JSONCodec<Empty> {
         return Empty.value();
     }
 
+    @Override
+    public JSONValue unparseValue(final Empty value) {
+        return JSONValue.EMPTY;
+    }
+
     @Override
     public void writeValue(final JSONValueWriter ctx, final Empty value) throws IOException {
         ctx.writeEmpty();