Converted levels to JSON