@Biju Mathew Hello and welcome to Microsoft Q&A.
So I understand you want to do some transformation on your JSON file, but are not sure how to go about it.
For most transformation in Data Factory, you want to use Data Flow. Set up properly, Data Flow's Source transformation will ingest your JSON file, and each element of the outermost array will be treated as a "row". Then using a Derived Column transformation you can alter each property as needed.
If you need this as part of the control logic in the pipeline, then you should use the Lookup Activity followed by Set Variable activity.
For getting and formatting the time in pipeline expressions:
@formatDateTime( utcnow() , "r" )
I'm not sure of the end goal of var jsonBytes = Encoding.UTF8.GetBytes(jsonvar);
If you just want to change encoding, that is set in the Dataset properties.
Let me know the greater context of your ask and I can provide better help.