using System.Collections.Generic;

public static class BasicJSON
{
	public static string FromStringArray(string[] items)
	{
		var len = items.Length;
		var s = "[";
		for (var i = 0; i < len; i++)
		{
			s += $"\"{items[i]}\"";
			if (i != len - 1)
			{
				s += ",";
			}
		}
		s += "]";
		return s;
	}

	public static string FromDictionaryOfStrings(Dictionary<string, string> dict)
	{
		var s = "{";
		foreach (var item in dict)
		{
			s += $"\"{item.Key}\": \"{item.Value}\",";
		}
		s = s.Substring(0, s.Length - 1);
		s += "}";
		return s;
	}
}
