Certified PRO developer move: if you want to encode a set in JSON, use a map with arbitrary values: { "a": "please", "b": "don't", "d": "actually", "c": "do", "e": "this" }
-
-
gah, I'm tired. For the empty set, you just never return a response.
-
in that case, a pair of two booleans will encode all 4 options. Classy and concise!
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.