Package io.vertx.servicediscovery.zookeeper

## Class JsonObjectSerializer

- java.lang.Object
- - io.vertx.servicediscovery.zookeeper.JsonObjectSerializer

- All Implemented Interfaces:
    `org.apache.curator.x.discovery.details.InstanceSerializer<JsonObject>`

      public class JsonObjectSerializer
      extends Object
      implements org.apache.curator.x.discovery.details.InstanceSerializer<JsonObject>

  Author:
    Clement Escoffier

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `JsonObjectSerializer()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `org.apache.curator.x.discovery.ServiceInstance<JsonObject>` | `deserialize​(byte[] bytes)` |
    `byte[]` | `serialize​(org.apache.curator.x.discovery.ServiceInstance<JsonObject> instance)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JsonObjectSerializer

          public JsonObjectSerializer()

  - ### Method Detail

    - #### serialize

          public byte[] serialize​(org.apache.curator.x.discovery.ServiceInstance<JsonObject> instance)
                           throws Exception

      Specified by:
        `serialize` in interface `org.apache.curator.x.discovery.details.InstanceSerializer<JsonObject>`
      Throws:
        `Exception`

    - #### deserialize

          public org.apache.curator.x.discovery.ServiceInstance<JsonObject> deserialize​(byte[] bytes)
                                                                                 throws Exception

      Specified by:
        `deserialize` in interface `org.apache.curator.x.discovery.details.InstanceSerializer<JsonObject>`
      Throws:
        `Exception`