| Package | Description |
|---|---|
| org.onosproject.codec |
Base JSON codec abstraction and a service for tracking various JSON codecs.
|
| Modifier and Type | Method and Description |
|---|---|
List<T> |
JsonCodec.decode(com.fasterxml.jackson.databind.node.ArrayNode json,
CodecContext context)
Decodes the specified JSON array into a collection of entities.
|
T |
JsonCodec.decode(com.fasterxml.jackson.databind.node.ObjectNode json,
CodecContext context)
Decodes the specified entity from JSON.
|
com.fasterxml.jackson.databind.node.ArrayNode |
JsonCodec.encode(Iterable<T> entities,
CodecContext context)
Encodes the collection of the specified entities.
|
com.fasterxml.jackson.databind.node.ObjectNode |
JsonCodec.encode(T entity,
CodecContext context)
Encodes the specified entity into JSON.
|
Copyright © 2015. All rights reserved.