Package org.restheart.utils
Class JsonUnflattener
java.lang.Object
org.restheart.utils.JsonUnflattener
JsonUnflattener provides a static unflatten(String) method
to unflatten any flattened JSON string back to nested one.
- Author:
- Wei-Ming Wu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()toString()org.bson.BsonValueReturns a JSON string of nested objects by the given flattened JSON string.static org.bson.BsonValueunflatten(org.bson.BsonValue json) Returns a JSON string of nested objects by the given flattened JSON string.
-
Constructor Details
-
JsonUnflattener
public JsonUnflattener(org.bson.BsonValue json) Creates a JSON unflattener.- Parameters:
json-
-
-
Method Details
-
unflatten
public static org.bson.BsonValue unflatten(org.bson.BsonValue json) Returns a JSON string of nested objects by the given flattened JSON string.- Parameters:
json- a flattened JSON string- Returns:
- a JSON string of nested objects
-
unflatten
public org.bson.BsonValue unflatten()Returns a JSON string of nested objects by the given flattened JSON string.- Returns:
- a JSON string of nested objects
-
hashCode
public int hashCode() -
equals
-
toString
-