anchor.diff:  <%= form_for(@protocol, :url => url_for(:controller => 'protocols', :action => 'protocolsio_import_save'),method: :post,format: :javascript,remote: true,:html => { :id => "protocolsio-import-form" }) do |f| %>
  -  <%#= fields_for :steps do |g| %>
  -  <% #json_string= JSON.parse(json_string)%>
  -  <% #json_string = JSON.generate(json_string['steps'])
  -#json_object['steps'][0]['components'][0]['data']
  -#Sanitize, sanitize_input, CGI.escape ,
  -  #byebug
  -  #kaj dela: .remove("\"") na stringih, sanitize_input ampak pokvari stran
  -   %>
   
     <%= hidden_field_tag :json_object, JSON.generate(@json_object) %>
     <%= hidden_field_tag :type, CGI.parse(URI.parse(request.referrer).query).fetch("type") %>
   
  -  <%# #CGI.parse(URI.parse(request.referrer).query).fetch("type") %>
   <div id="modal-import-json-protocol-preview" class="modal fade" role="dialog" tabindex="-1">
     <div class="modal-dialog">
       <div class="modal-content">
  
positive.code:                     <% value=key #json format ima random arraye namest hashov, ta problem je opisan pri if counter > 1 stavku %>
                      <% end %>
  
                        <% if whitelist_simple.include?(value["component_type_id"])&& value["data"]!="" && value["name"] && value["data"]  %>
                        <br>
                        <%= (value["name"])+" : "+(value["data"]) %>
                        <%
  
negative.code:                       #@json.file_contents["steps"][0]["components"]
                        %>
  
                      <% elsif value && whitelist_complex.include?(value["component_type_id"]) %>
                        <% case value["component_type_id"]%>
                        <% when "8"%>
                        <br>
  