public class CliUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
toJson(org.apache.thrift.TBase<?,?> tbase)
Returns the json representation of the specified Thrift object
|
public static String toJson(org.apache.thrift.TBase<?,?> tbase) throws IOException
tbase - the thrift object to be serialized as a jsonIOException - if any Thrift error occurs during the serializationCopyright © 2024 The Apache Software Foundation. All rights reserved.