Store bytes in an array. Serialize and restore from JSON