#!/bin/sh . /usr/share/libubox/jshn.sh case "$1" in list) echo '{ "get": { } }' ;; call) case "$2" in get) # create output json_init json_add_string value "$(date '+%Y-%m-%d-%H-%M-%S-%Z')" # return json object json_dump ;; esac ;; esac