Updated code for manipulating cubes with JSON
Beautify