fix json misdetection; closes #17