I found all info for this question here: How do I give players already enchanted Tools/Armour/Weapons
I get an error when typing The following:
/give @p diamond_sword 1 0 {ench:[{id:17,lvl:2},{id:19,lvl:30}]}
The error:
x Line 1, Column 2: Missing '}' or object member name
Can the "component:json" field be used on Xbox One or PC only?