title: APEX set item value & session state with javascript
body: <p>I am trying to set the value and the session state with Javascript in oracle apex.  Here my function that I call:</p>
  
  <pre><code>function setItemValue(node) {
      $s('P2020_SELECTED', node);
  
      apex.server.process ('MY_PROCESS', {
           p_arg_name: 'P2020_SELECTED',
           p_arg_value: node
        });
      } 
  </code></pre>
  
  <p>The display value (Line 2) will be set but the session state not. I get this error on page load in apex.</p>
  
  <pre><code>Error: SyntaxError: Unexpected token P in JSON at position 0
  </code></pre>