add json attripute to instance resource