Example usage for org.json.simple JSONObject toJSONString

List of usage examples for org.json.simple JSONObject toJSONString

Introduction

In this page you can find the example usage for org.json.simple JSONObject toJSONString.

Prototype

public static String toJSONString(Map<String, Object> map) 

Source Link

Usage

From source file:io.personium.client.utils.JsonUtils.java

/**
 * This method converts the Map values to string form.
 * @param jsonMap Target Map//  w  w w  . jav  a  2s.  c o  m
 * @return JSON string
 */
public static String toJsonString(final Map<String, Object> jsonMap) {
    return JSONObject.toJSONString(jsonMap);
}