Issue #92: refactored parseObject to accept wither JSONOBjects or Strings