Lockable test
Use /lock
while looking at a chest to lock it and receive a key item. The lock on the chest was set to the same string as the display name, but they key does not work. Using the /data
command to inspect the item's NBT data it would seem that this is because the display name has been turned into a JSON chat component.