function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Stephanie GethersStephanie Gethers 

print varible in class

Hello if i i have class how can i  print the verible int the class:

for example :

<apex:outputText value="{!discounts}"/>
 

and i get the result of :

discountsClass:[name=household, type=percent, value=0.07]
how can i get the varible inside like the name?

 

Best Answer chosen by Stephanie Gethers
brahmaji tammanabrahmaji tammana
You need to convert JSON to Apex, then use get;set; to that variable and show it in UI.

All Answers

LBKLBK
Can you tried the following code?
 
<apex:outputText value="{!discounts.Name}"/>

 
brahmaji tammanabrahmaji tammana
You need to convert JSON to Apex, then use get;set; to that variable and show it in UI.
This was selected as the best answer