web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

An unexpected 'StartObject' node was found for property named 'ds_JSONinput' when reading from the JSON reader. A 'PrimitiveValue' node was expected.

(0) ShareShare
ReportReport
Posted on by 5

Dear All , 

we are using D365 custom APi . we are using one request parameter (string) and plugin to desrialize and write data in the CRM . 

when am sending the JSON from Postman am getting the error given below.

Postman request is : 

{
    "ds_JSONinput"
[
        {
        "Name""Krishna_ Claims_Test 6",
        "Quarter"930760001,
        "Coveraffected"930760014,
        "uwyearaffected"930760023,
        "BeginningReserves"150
      
        }
    ]
}
 
Error getting is : 
 An unexpected 'StartObject' node was found for property named 'ds_JSONinput' when reading from the JSON reader. A 'PrimitiveValue' node was expected.\r\n   at Microsoft.OData.JsonLight.
i have tried to verify from console application and given the JSON input as below and code is working .
JSON input to console ,
string jsonPayload = @"
            [
                {
                    ""Name"": ""Krishna_Claims_veladi"",
                    ""Quarter"": {
                        ""Value"": 930760001
                    },
                    ""CoverAffected"": {
                        ""Value"": 930760014
                    },
                    ""UWYearAffected"": {
                        ""Value"": 930760023
                    },
                    ""BeginningReserves"": {
                        ""Value"": 150,
                        ""Currency"": ""USD""
                    }
                },
                {
                    ""Name"": ""Krishna_Claims_Sandila"",
                    ""Quarter"": {
                        ""Value"": 930760001
                    },
                    ""CoverAffected"": {
                        ""Value"": 930760014
                    },
                    ""UWYearAffected"": {
                        ""Value"": 930760023
                    },
                    ""BeginningReserves"": {
                        ""Value"": 200,
                        ""Currency"": ""USD""
                    }
                }
            ]";
Kindly suggest . thanks 
I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: An unexpected 'StartObject' node was found for property named 'ds_JSONinput' when reading from the JSON reader. A 'PrimitiveValue' node was expected.

    Hello,

    Try to use the stringified version of your ojbect:

    {

       "ds_JSONinput":  "[{""Name"":""Krishna_ Claims_Test 6"",""Quarter"":930760001,""Coveraffected"":930760014,""uwyearaffected"":930760023,""BeginningReserves"":150}]"

    }

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daniyal Khaleel Profile Picture

Daniyal Khaleel 116

#2
DAnny3211 Profile Picture

DAnny3211 101

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 66 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans