remove json as a global

This commit is contained in:
2025-12-18 11:20:39 -06:00
parent 04a648a73e
commit aa18a8c8d2
16 changed files with 43 additions and 52 deletions

View File

@@ -2,14 +2,14 @@ return {
test_contact: function() {
function contact_fn(actor,reason) {
if (actor) {
log.console(`Got an actor: ${json.encode(actor)}`)
log.console(`Got an actor: ${actor}`)
send(actor, {greet: "Hello!"}, e => {
log.console(`Got the response ${json.encode(e)}. Goodbye!`);
log.console(`Got the response ${e}. Goodbye!`);
})
}
else
log.console(`Did not get an actor: ${json.encode(reason)}`)
log.console(`Did not get an actor: ${reason}`)
}
$_.contact(contact_fn,