fixed issue with JSON->stdout->JSON