Fixed JSON response issue that was using the reflective type rather than the object instance's type