<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Error processing request stream. JSON text specified is not valid | XSOData in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/error-processing-request-stream-json-text-specified-is-not-valid-xsodata/qaa-p/644638#M162995</link>
    <description>&lt;P&gt;Pass the JSON object as a variable to make sure it is in the right format.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;var oEntry = {}; 
oEntry.perno = "123456789";
oEntry.SID = "BHAT";
oEntry.tdate = "Apr 018";
oEntry.vecnumber = "Ino3x";

sap.ui.getCore().getModel().create('/Mileage', oEntry, null, 
   function (oResponse){
       console.log("Create successful");
       console.log(oResponse);
   },
   function (oError) {
       console.log("Create failed");
       console.log(oError); 
    }
);&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 May 2018 15:25:49 GMT</pubDate>
    <dc:creator>former_member239103</dc:creator>
    <dc:date>2018-05-10T15:25:49Z</dc:date>
    <item>
      <title>Error processing request stream. JSON text specified is not valid | XSOData</title>
      <link>https://community.sap.com/t5/technology-q-a/error-processing-request-stream-json-text-specified-is-not-valid-xsodata/qaq-p/644637</link>
      <description>&lt;P&gt;I am able to do a post with the XSODATA via postman client, however it wont work in the SAPUI5 application. &lt;/P&gt;
  &lt;P&gt;below is from postman.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/128553-ap1.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Below is my code. I am using sap.ui.model.odata.ODataModel&lt;/P&gt;
  &lt;P&gt;with content-type" : "application/json;charset=utf-8"});&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/128554-ap2.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 15:05:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-processing-request-stream-json-text-specified-is-not-valid-xsodata/qaq-p/644637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-04-05T15:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error processing request stream. JSON text specified is not valid | XSOData</title>
      <link>https://community.sap.com/t5/technology-q-a/error-processing-request-stream-json-text-specified-is-not-valid-xsodata/qaa-p/644638#M162995</link>
      <description>&lt;P&gt;Pass the JSON object as a variable to make sure it is in the right format.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;var oEntry = {}; 
oEntry.perno = "123456789";
oEntry.SID = "BHAT";
oEntry.tdate = "Apr 018";
oEntry.vecnumber = "Ino3x";

sap.ui.getCore().getModel().create('/Mileage', oEntry, null, 
   function (oResponse){
       console.log("Create successful");
       console.log(oResponse);
   },
   function (oError) {
       console.log("Create failed");
       console.log(oError); 
    }
);&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 15:25:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-processing-request-stream-json-text-specified-is-not-valid-xsodata/qaa-p/644638#M162995</guid>
      <dc:creator>former_member239103</dc:creator>
      <dc:date>2018-05-10T15:25:49Z</dc:date>
    </item>
  </channel>
</rss>

