Class SmiObjectJsonConverter
java.lang.Object
com.snmp4j.smi.util.json.SmiObjectJsonConverter
Utility class for converting SmiObject instances and their sub-interfaces to JSON format.
- Since:
- 2.0
- Version:
- 2.0
- Author:
- Frank Fock
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringConverts any SmiObject (or sub-interface) to a JSON string representation.static StringtoJsonArray(Collection<? extends SmiObject> objects) Converts a collection of SmiObjects to a JSON array string.
-
Method Details
-
toJson
-
toJsonArray
Converts a collection of SmiObjects to a JSON array string.- Parameters:
objects- collection of SmiObject instances- Returns:
- JSON array string
-