Replace proprietary PHP serialize output in bestow with JSON