io.blitz.jenkins.util
Class JsonConverter

java.lang.Object
  extended by io.blitz.jenkins.util.JsonConverter

public class JsonConverter
extends Object

Used to serialize and deserialize JSON.

Author:
ghermeto

Constructor Summary
JsonConverter()
           
 
Method Summary
static Map<String,Object> fromJson(String json)
          Deserializes a JSON string
static String toJson(Object result)
          Serializes a object into a JSON string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonConverter

public JsonConverter()
Method Detail

toJson

public static String toJson(Object result)
Serializes a object into a JSON string

Parameters:
result - object to be serialized
Returns:
JSON string

fromJson

public static Map<String,Object> fromJson(String json)
Deserializes a JSON string

Parameters:
json - JSON string
Returns:
object from JSON


Copyright © 2004-2012 Spirent Communications. All Rights Reserved.