In article <mailman.1655.1360594595.2939.python-l...@python.org>, Ihsan Junaidi Ibrahim <ih...@grep.my> wrote:
> I'm running JSON for my application messaging protocol but with JSON and > python default unordered dict, > there's no guarantee if I put in the length key in the JSON message, it will > be placed on the first bytes hence > why it was designed for a fixed 4-byte at the start of the message to > indicate the message length. > > Beyond the 4-bytes it is all JSON. I'm confused. It sounds like you're making things way more complicated than they have to be. Can you give us an example of an actual data message? -- http://mail.python.org/mailman/listinfo/python-list