--[=[
	Adds json to a localization table

	@param localizationTable LocalizationTable -- The localization table to add to
	@param localeId string -- The localeId to use
	@param json string -- The json to add with
	@param tableName string -- Used for source
]=]

function JsonToLocalizationTable.addJsonToTable(localizationTable, localeId, json, tableName)
	assert(type(tableName) == "string", "Bad tableName")

	local decodedTable = HttpService:JSONDecode(json)
	recurseAdd(localizationTable, localeId, "", decodedTable, tableName)
end

return JsonToLocalizationTable

