demo trivial json api sample