agave-metadata/metadata-core/src/main/java/org/iplantc/service/metadata/util/ServiceUtils.java
/**
	 * Unescapes persisted reference fields in serialized json schema 
	 * objects from their unicode values for persisting in MongoDB.
	 * 
	 * @param json
	 * @return
	 */
Unescapes persisted reference fields in serialized json schema
objects from their unicode values for persisting in MongoDB.

@param json
@return
Unescapes persisted reference fields in serialized json schema objects from their unicode values for persisting in MongoDB . @param json @return
public static String unescapeSchemaRefFieldNames(String json) {
    	String escapedRef = MongoDBSafeKey.escapeFieldName("$ref");
    	String escapedSchema = MongoDBSafeKey.escapeFieldName("$schema");
    	return StringUtils.replace(StringUtils.replace(json, escapedRef, "$ref"), escapedSchema, "$schema");
	}
public static String unescapeSchemaRefFieldNames ( String json ) { String escapedRef = MongoDBSafeKey . escapeFieldName ( "$ref" ) ; String escapedSchema = MongoDBSafeKey . escapeFieldName ( "$schema" ) ; return StringUtils . replace ( StringUtils . replace ( json , escapedRef , "$ref" ) , escapedSchema , "$schema" ) ; }
Unescapes persisted reference fields in serialized json schema
 objects from their unicode values for persisting in MongoDB.
Unescapes persisted reference fields in serialized json schema objects from their unicode values for persisting in MongoDB .