private TypedObject readObjectAMF0() throws EncodingException, NotImplementedException
	{
		TypedObject body = new TypedObject("Body");
		String key;
		while (!(key = readStringAMF0()).equals(""))
		{
			byte b = readByte();
			if (b == 0x00)
				body.put(key, readDouble());
			else if (b == 0x02)
				body.put(key, readStringAMF0());
			else if (b == 0x05)
				body.put(key, null);
			else
				throw new NotImplementedException("AMF0 type not supported: " + b);
		}
		readByte(); // Skip object end marker

		return body;
	}