class JsonBuffer {

	public static String toString(String name, Object value, Object... otherPairs) {
		final JsonBuffer buffer = new JsonBuffer();
		buffer.add(name, value);
		for (int i = 0; i < otherPairs.length; i += 2) {
			buffer.add(Objects.toString(otherPairs[i]), otherPairs[i + 1]);
		}
		return buffer.toString();
	}

}