org.apache.hadoop.hbase.util
Class JsonMapper

java.lang.Object
  extended by org.apache.hadoop.hbase.util.JsonMapper

@InterfaceAudience.Public
@InterfaceStability.Evolving
public final class JsonMapper
extends Object

Utility class for converting objects to JSON


Method Summary
static String writeMapAsString(Map<String,Object> map)
           
static String writeObjectAsString(Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

writeMapAsString

public static String writeMapAsString(Map<String,Object> map)
                               throws IOException
Throws:
IOException

writeObjectAsString

public static String writeObjectAsString(Object object)
                                  throws IOException
Throws:
IOException


Copyright © 2007-2015 The Apache Software Foundation. All Rights Reserved.