You need to sign in to do that
Don't have an account?
Prachi Potdar
How to convert in json format with soql query
Commission_JSON__c": "{\n \"totalCommission\" : 100,\n \"isEditable\" : true,\n \"CommissionWrapperList\" : [ {\n \"isEditable\" : true,\n \"employeeName\" : \"Salman Ahmad\",\n \"employeeId\" : null,\n \"employeeCommission\" : 100\n } ]\n}"
How to convert in json format with soql query?
How to convert in json format with soql query?
If you meant how to convert json format into SOQL then
we use JSON.Serialize
and json.deserialize
Kindly mark it as the best answer if it helps.
Your ask is not clear. Recommend reviewing below posts related to converting soql result to Json format
https://developer.salesforce.com/forums/?id=9062I000000IMYOQA4
https://salesforce.stackexchange.com/questions/126212/how-to-convert-list-data-into-json-in-apex
https://salesforce.stackexchange.com/questions/21200/json-from-nested-query
Thank you