Constructs an item with some extra data.
JSONException if the JSON string is malformed
auto item = new Items.Apple(`{"customName":"SPECIAL APPLE","enchantments":[{"name":"protection","level":"IV"}]}`); assert(item.customName == "SPECIAL APPLE"); assert(Enchantments.protection in item);
See Implementation
Constructs an item with some extra data.