Add json format to showAction

Fixes #5.