Sending user messages to action server as a Json object

Hey everyone i am trying to send the user message from another module to action server using following piece of code.

Can anyone please help with this

You can find docs here and here.

Also, the source code is option source and can be found here.