Order preserving json to binary encoding.