fixes bug 1042718 - error on json_dump without 'threads' key