adding json output to result