Adding assertion for Json2bytes, need to understand how to do with byte