What’s nice about JSON is that it’s actually valid JavaScript, with some formal specification to avoid any nasty circles or injections.
Why can’t your protocol just be valid JavaScript too? this.name = “string”; instead of mixing so many metaphors?
replies(2):