Web Dev API Multiple Tags read / write required

Hi all,

I'm trying to read the multiple tags to send through API using the web dev module. I can able to read a single tag and that to Json format another application.

If trying to read multiple tags I can't able to read and write those tags.

Please find the below script used in the web dev doget method.

def doGet(request, session):

tagValue1 = system.tag.readBlocking([request['data']['tagPath1']])
tagValue2 = system.tag.readBlocking([request['data']['tagPath2']])

return {'json':[{'tagValue1': tagValue1[0].value}, {'tagValue2': [tagValue2[0].value'}]

In the Post Body I gave the body below image reference.
image

So Is that the correct method or suggest the changes?

tagValues = system.tag.readBlocking([request['data']['tagPath1'],[request['data']['tagPath2']])
return {'json':system.util.jsonEncode(tagValues)}

Would be the simplest way.