Change serialize format from JSON to binary