[IMPL] Added json_protect function in order to escape needed chars inside strings.

* Bugfix: Session::execute() failing because of unescaped script string.