[xmpp] Send tree_id and variable value JSON encoded