17
1
using System;
2
3
public class Program {
4
public static void Main() {
5
6
int x = 10;
7
int y = 20;
8
9
if (x == 10) // returns true
10
{
11
if (y == 20) // returns true
12
{
13
Console.WriteLine("Y is equal than 20");
14
}
15
}
16
}
17
}
Cached Result
Environment version: 4.0.30319.42000
Json.NET version: Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed
Generated JSON:
[
{
"Customer": {
"Id": 1,
"FirstName": "John",
"Address": {
"AddressLine1": "1 Street"
}
}
},
{
"Customer": {
"Id": 2,
"FirstName": "Sam",
"Address": {
"AddressLine1": "Fedral Highway"
}
}
}
]
Generated JSON is equivalent to required JSON.
Json.NET version: Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed
Generated JSON:
[
{
"Customer": {
"Id": 1,
"FirstName": "John",
"Address": {
"AddressLine1": "1 Street"
}
}
},
{
"Customer": {
"Id": 2,
"FirstName": "Sam",
"Address": {
"AddressLine1": "Fedral Highway"
}
}
}
]
Generated JSON is equivalent to required JSON.