// Parser state machine states:
enum Expecting
{
	startOfArray,
	startOfRecord,
	startOfName,
	gettingName,
	nameValueSeparator,
	startOfValue,
	gettingValue,
	gettingEndOfValueORRecord,
	gotEndOfRecord,
	gettingRecordSeparator,
	done,
	error,

	gettingString,
	gettingBoolean,
	gettingInteger,
	gettingFloat,
	gettingNull
}