add type check for readJson parameters

partially should fix exceptions while working with received messages

Jira-issue: WP-1258