Package com.darylteo.vertx.gradle.util

Source Code of com.darylteo.vertx.gradle.util.MapToJson

package com.darylteo.vertx.gradle.util;

import groovy.json.JsonBuilder;

import java.util.Map;

/**
* Created by dteo on 10/05/2014.
*/
public class MapToJson {
  public static String convert(Map map) {
    JsonBuilder json = new JsonBuilder();
    json.call(map);
    return json.toPrettyString();
  }

}
TOP

Related Classes of com.darylteo.vertx.gradle.util.MapToJson

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.