fixed json try/catch if fails
updated swig