levels are now JSON documents