+ Start a Discussion

Can I get records data in JSON format using LDS in LWC component?

ANUTEJANUTEJ (Salesforce Developers) 
Hi Sumitk,

There is an implementation that uses lds in lightning web components in the below link that you can have a look at once:

>> http://www.sfdcpanda.com/reusable-lightning-data-service-detail-page-in-lwc/

Also, in the documentation [https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.data_wire_example] there is a statement "xample demonstrates data access via the returned JSON object. To simplify data access, use getFieldValue(record, field)." you can try checking this link as well.

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.