toJsonObject

Converts the given Map object to a JsonObject. Each key-value pair in the map is converted to a corresponding key-value pair in the JsonObject. The keys are converted to string representation using the toString method. The values are converted to JsonElement using the toJsonElement method.

Return

the converted JsonObject.

See also