Passing Table Data from client script to server script API

Hi,

I am calling Server Script API from a custom script. I want to pass a table data from Client Script To Server Script API. The Data is coming as a string with special character like . While parsing the table records it is giving the following error:

TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'

Is there any standard way to handle this scenario?

Thanks,
Joseph

The Data is coming to API as a string with special character like backslash “\” .