Revert "use json string for passing data"

This reverts commit 29e748a814daf10c67b1b0a54580d26ece86d492.