I tried the following commands, but none of them worked.
-getblocktemplate "segwit"
-Error: Error parsing JSON: segwit
-getblocktemplate ("segwit")
-Error: Error parsing JSON: segwit
-getblocktemplate "rules": ["segwit"]
-Error: Error parsing JSON: rules:
-getblocktemplate {"rules": ["segwit"]}
-Error: Error parsing JSON: {rules:
-getblocktemplate
-getblocktemplate must be called with the segwit rule set (call with {"rules": ["segwit"]}) (code -8)
-getblocktemplate {"rules": ["segwit"]}
-Error: Error parsing JSON: {rules:
How can I use this command correctly?