Fixed thread + json output