63887546 fix json generation in case the value is a resource