Added json output to example