Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

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

$
0
0

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 

Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images