+ 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