fixed build error in json output code

see #74