You need to sign in to do that
Don't have an account?
Raksha Narayan
Remove brackets and separate the field with semi colon in apex
I have a string in apex controller stored as follows: String qtr={"Forecast_Category__c":["Unqualified","Not addressable"],"StageName":["1. Understand Customer","2. Discover Needs"]}.
is it possible to store the following in the below format?
{Forecast_Category__c:[Unqualified,Not addressable] ; StageName:[1. Understand Customer,2. Discover Needs]}.
is it possible to store the following in the below format?
{Forecast_Category__c:[Unqualified,Not addressable] ; StageName:[1. Understand Customer,2. Discover Needs]}.
system.debug( ' ==> ' + qtr.remove('"').replace('],', '];'));
Thanks,
Maharajan.C