pass a string in beginRequest method in Safari App Extension (web extension)

I am running a safari web extension and sending a message from the JavaScript to the app extension.

The beginRequest method takes in an NSExtensionContext which has the inputItems property. This changes the structure of the JSON string coming in, which I do not want. Is there a way to avoid the restructuring and keep the original JSON intact?

How does it change the structure?

If you could file a report at https://feedbackassistant.apple.com with a sample app reproducing this, that would be very helpful.

pass a string in beginRequest method in Safari App Extension (web extension)
 
 
Q