title: Robotframework: How to update JSON field value
body: <p>I am writing a test with the robot framework.  I am trying to update values in a json field, but I am seeing some odd behavior.  </p>
  
  <p>I do a HTTP GET and receive a json.  I check what the value is originally,</p>
  
  <pre><code>Log To Console | ${JSON["Components"]["SubComponents"]}
  </code></pre>
  
  <p>which returns</p>
  
  <pre><code>valueA
  </code></pre>
  
  <p>Then I try to update the values as below.</p>
  
  <pre><code>${JSON["Components"]["SubComponents"]}= | Set Variable | valueB
  </code></pre>
  
  <p>If I log the output this way</p>
  
  <pre><code>Log To Console | ${JSON["Components"]["SubComponents"]}
  </code></pre>
  
  <p>I see</p>
  
  <pre><code>valueB
  </code></pre>
  
  <p>but if I check this way</p>
  
  <pre><code>Log To Console | ${JSON["Components"]}
  </code></pre>
  
  <p>I see</p>
  
  <pre><code>{u'SubComponents': valueA, u'MoreComponents': whatever}
  </code></pre>
  
  <p>What is going on and why is it not updating?</p>
  
  <p>I need to update the JSON field so I can do an HTTP PATCH.
  I have tried following <a href="https://stackoverflow.com/questions/35262216/json-handling-in-robot/35272804">Json handling in ROBOT</a>
  But it doesn't work and I think it has something to do with my JSON file having single quotes.  </p>
  
  <p>FYI I am new to json and robotframework</p>