Serialize invalid buffer to !! (text) or [] (json) There is no generic deserialize - you have to choose glyphs or unicode - so there is no way to deserialize this buffer.