thehowl / claws

Awesome WebSocket CLient - an interactive command line client for testing websocket servers
MIT License
301 stars 18 forks source link

JSON composing #2

Closed thehowl closed 6 years ago

thehowl commented 7 years ago

Can be activated with <ESC>J, it enables composing json in the textfield with ease, and it is persistent (like replace mode)

key=value
{"key":"value"}
key="value"
{"key":"value"}
key=true
{"key":true}
key="true"
{"key":"true"}
key=1
{"key":1}
key="1"
{"key":"1"}
a=a b=b
{"a":"a","b":"b"}
[1, 2, 3]
[1,2,3]
[a=a, b=b c=c]
[{"a":"a"},{"b":"b","c":"c"}]
[a, b, c]
["a","b","c"]
a
"a"
a=[1, 2, 3]
{"a":[1,2,3]}

Edge cases will be figured out as we go

thehowl commented 6 years ago

This is a terrible idea.