json string can't recognized when deserialize

json string can't recognized when deserialize

  

Hi, 


i have case where I can't deserializing json string to object in OS.

i tried on c#, the string already correct, it return a dataset, but on OS, it can't get the value.

on c# : 


on OS :

json string i inputted :

SyntaxEditor Code Snippet

"{""AppLPJTest"":
    [
        {
            ""AppId"":""32P2102001409090001"",
            ""CollateralId"":""1"",
            ""CollateralType"":""5"",""CollateralTaksasi"":""950000000"",
            ""CollateralValue"":""1000000000"",""TanggalPemeriksaan"":""9/9/2014 15:31:31""
        }
    ]
}"


Hi Tobit

I can't see well your second picture, but it looks like you are trying to deserialize a AppLPJTest entity and the provided JSON doesn't match the structure. If you input that JSON string in the "Add Structure from JSON" option, you'll see that the data structure created looks like this:



Try instead to input this string in the JSON Deserialize node:

"{
     ""AppId"":""32P2102001409090001"",
     ""CollateralId"":""1"",
     ""CollateralType"":""5"",""CollateralTaksasi"":""950000000"",
     ""CollateralValue"":""1000000000"",""TanggalPemeriksaan"":""9/9/2014 15:31:31""
}"



João Amorim wrote:

Hi Tobit

I can't see well your second picture, but it looks like you are trying to deserialize a AppLPJTest entity and the provided JSON doesn't match the structure. If you input that JSON string in the "Add Structure from JSON" option, you'll see that the data structure created looks like this:



Try instead to input this string in the JSON Deserialize node:

"{
     ""AppId"":""32P2102001409090001"",
     ""CollateralId"":""1"",
     ""CollateralType"":""5"",""CollateralTaksasi"":""950000000"",
     ""CollateralValue"":""1000000000"",""TanggalPemeriksaan"":""9/9/2014 15:31:31""
}"



cool, it works now, tq :)