var jsonConverters = {}
function convertJsonToEdits(dbSchema, type, json, topTemporaryId){
	//_.assertInt(topTemporaryId)
	if(dbSchema.jsonConverters === undefined){
		dbSchema.jsonConverters = {}
	}
	var converter = dbSchema.jsonConverters[type]
	if(converter === undefined){
		converter = dbSchema.jsonConverters[type] = generateJsonConverter(dbSchema, type)
	}
	//console.log(JSON.stringify(json))
	return converter(json, topTemporaryId)
}