Hi @Saru Thiagarajan ,
Thank you for posting query in Microsoft Q&A Platform.
As I understand your query, You are looking for loading json data which coming as string in to CosmosDB either using copy activity as data flows. Please correct me if my understanding is incorrect.
Pipeline expressions has json() function as you mentioned but mapping data flow don't have such out of box function to convert string to json.
Your requirement can be achieved using Parse transformation in mapping data flows. Click here for parse transformation documentation. Click here for small video on parse transformation to understand its functionality better.
Kindly check below images and details which explains similar implementation.
Step1: Source transformation. Here I am using Adhoc query to get some json data as string.
Step2: Parse Transformation to parse json string to json objects and arrange them as columns and rows.
Step3: Sink transformation use CosmosDB dataset and load data accordingly.
Hope this helps. Please let us know if any further queries. Thank you.
-----------
Please consider hitting Accept Answer
. Accepted answers helps community as well.