code: function(key){
                                  if ($scope.json[key] !== null) $scope.jsonFn[key] = $scope.json[key].toString().trim();
                              }
docs: /* define function value for textarea