-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
moravcikj24
authored and
moravcikj24
committed
Nov 19, 2024
1 parent
4a7488f
commit 80747f7
Showing
4 changed files
with
67 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,17 @@ | ||
// See https://aka.ms/new-console-template for more information | ||
Console.WriteLine("Hello, World!"); | ||
using Newtonsoft.Json; | ||
using System; | ||
|
||
namespace AppsLab_033_NuGet | ||
{ | ||
class Program | ||
{ | ||
static void Main(string[] args) | ||
{ | ||
var person = new { Name = "Jano", Age = 25 }; | ||
|
||
string json = JsonConvert.SerializeObject(person, Formatting.Indented); | ||
|
||
Console.WriteLine(json); | ||
} | ||
} | ||
} |