title: Append new Property to existing JSON object on click event using Jquery
body: <p>I am trying to append value from a input field into an existng JSON object and I keep getting errors.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>$('#addObjectBtn').click(function() {
              //Inject Property into current object
              var newObjName = $('#newObjectName').val();
              var newObjType = $('#newObjectType').val();
              objStr.View[newObjType + "_100"] = {"BackgroundImage":'""' + newObjName + '""'};
              $('#newObjectPrompt').dialog('close');
          })
  </code></pre>
  
  <p>EDIT: ADD JSON Object. I am trying to add for example another Button. Which would be "Button_100" in my example</p>
  
  <pre><code>{
      "View": {
          "Name": "Untitled3",
          "ImportWidth": 320,
          "ImportHeight": 480,
          "Image_1": {
              "BackgroundImage": "Image.png",
              "Position": [0, 0],
              "Width": 320,
              "Height": 480
          },
          "Button_1": {
              "BackgroundImage": "ButtonTop.png",
              "Position": [61, 83],
              "Width": 217,
              "Height": 58
          },
          "Button_2": {
              "BackgroundImage": "ButtonBottom.png",
              "Position": [81, 114],
              "Width": 205,
              "Height": 73
          },
          "TextField_1": {
              "BackgroundImage": "TextFieldLogin.png",
              "Position": [102, 336],
              "Width": 189,
              "Height": 31
          },
          "Label_1": {
              "Position": [137, 100],
              "Width": 54,
              "Height": 20,
              "Text": "HiRob",
              "FontSize": 18,
              "Color": [0, 0, 0, 1]
          },
          "Label_2": {
              "Position": [43, 342],
              "Width": 72,
              "Height": 20,
              "Text": "LogOut:",
              "FontSize": 18,
              "Color": [0, 0, 0, 1]
          },
          "Label_3": {
              "Position": [115, 234],
              "Width": 126,
              "Height": 20,
              "Text": "AnotherButton",
              "FontSize": 18,
              "Color": [0, 0, 0, 1]
          }
      }
  }
  </code></pre>