dmuka3.CS.Simple.JSON 1.0.1

https://github.com/muhammet-kandemir-95/dmuka3.CS.Simple.JSON

Install-Package dmuka3.CS.Simple.JSON -Version 1.0.1
dotnet add package dmuka3.CS.Simple.JSON --version 1.0.1
<PackageReference Include="dmuka3.CS.Simple.JSON" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add dmuka3.CS.Simple.JSON --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

dmuka3.CS.Simple.JSON

This library provides you to use JSON in C# like JavaScript.

Nuget

Link : https://www.nuget.org/packages/dmuka3.CS.Simple.JSON

Install-Package dmuka3.CS.Simple.JSON

Example 1

We will use library with dynamic variables.

var developer = json.parse(@"
	{
		""name"": null,
		""surname"": null,
		""addresses"": []
	}");

/*
	* {
	*   "name": "Muhammet",
	*   "surname": null,
	*   "addresses": []
	* }
	*/
developer.name = "Muhammet";
/*
	* {
	*   "name": "Muhammet",
	*   "surname": "Kandemir",
	*   "addresses": []
	* }
	*/
developer.surname = "Kandemir";
/*
	* {
	*   "name": "Muhammet",
	*   "surname": "Kandemir",
	*   "className": "C1",
	*   "addresses": []
	* }
	*/
developer.className = "C1";
/*
	* {
	*   "name": "Muhammet",
	*   "surname": "Kandemir",
	*   "className": "C1",
	*   "addresses": [
	*      "Address 1",
	*      "Address 2"
	*   ]
	* }
	*/
developer.addresses = new object[]
	{
		"Address 1",
		"Address 2"
	};
/*
	* {
	*   "name": "Muhammet",
	*   "surname": "Kandemir",
	*   "className": "Kandemir",
	*   "addresses": [
	*      "Address 1",
	*      "Address 2",
	*      "Address 3"
	*   ]
	* }
	*/
developer.addresses.push("Address 3");

Example 2

We can also use download.

/*
	* https://muhammet-kandemir-95.github.io/dmuka3.JS.Simple.OCD/examples/example-data.json
	* {
	*   "name": "Muhammet",
	*   "surname": "Kandemir"
	* }
	*/
var developer = json.download("https://muhammet-kandemir-95.github.io/dmuka3.JS.Simple.OCD/examples/example-data.json").data;

/*
	* {
	*   "name": "Muhammet",
	*   "surname": "Kandemir",
	*   "className": "Kandemir"
	* }
	*/
developer.className = "C1";

/*
	* {
	*   "name": "Muhammet",
	*   "surname": "Kandemir",
	*   "className": "C1",
	*   "addresses": [
	*      "Address 1",
	*      "Address 2"
	*   ]
	* }
	*/
developer.addresses = new object[]
{
	"Address 1",
	"Address 2"
};

/*
	* {
	*   "name": "Muhammet",
	*   "surname": "Kandemir",
	*   "className": "C1",
	*   "addresses": [
	*      "Address 1",
	*      "Address 2",
	*      "Address 3"
	*   ]
	* }
	*/
developer.addresses.push("Address 3");

dmuka3.CS.Simple.JSON

This library provides you to use JSON in C# like JavaScript.

Nuget

Link : https://www.nuget.org/packages/dmuka3.CS.Simple.JSON

Install-Package dmuka3.CS.Simple.JSON

Example 1

We will use library with dynamic variables.

var developer = json.parse(@"
	{
		""name"": null,
		""surname"": null,
		""addresses"": []
	}");

/*
	* {
	*   "name": "Muhammet",
	*   "surname": null,
	*   "addresses": []
	* }
	*/
developer.name = "Muhammet";
/*
	* {
	*   "name": "Muhammet",
	*   "surname": "Kandemir",
	*   "addresses": []
	* }
	*/
developer.surname = "Kandemir";
/*
	* {
	*   "name": "Muhammet",
	*   "surname": "Kandemir",
	*   "className": "C1",
	*   "addresses": []
	* }
	*/
developer.className = "C1";
/*
	* {
	*   "name": "Muhammet",
	*   "surname": "Kandemir",
	*   "className": "C1",
	*   "addresses": [
	*      "Address 1",
	*      "Address 2"
	*   ]
	* }
	*/
developer.addresses = new object[]
	{
		"Address 1",
		"Address 2"
	};
/*
	* {
	*   "name": "Muhammet",
	*   "surname": "Kandemir",
	*   "className": "Kandemir",
	*   "addresses": [
	*      "Address 1",
	*      "Address 2",
	*      "Address 3"
	*   ]
	* }
	*/
developer.addresses.push("Address 3");

Example 2

We can also use download.

/*
	* https://muhammet-kandemir-95.github.io/dmuka3.JS.Simple.OCD/examples/example-data.json
	* {
	*   "name": "Muhammet",
	*   "surname": "Kandemir"
	* }
	*/
var developer = json.download("https://muhammet-kandemir-95.github.io/dmuka3.JS.Simple.OCD/examples/example-data.json").data;

/*
	* {
	*   "name": "Muhammet",
	*   "surname": "Kandemir",
	*   "className": "Kandemir"
	* }
	*/
developer.className = "C1";

/*
	* {
	*   "name": "Muhammet",
	*   "surname": "Kandemir",
	*   "className": "C1",
	*   "addresses": [
	*      "Address 1",
	*      "Address 2"
	*   ]
	* }
	*/
developer.addresses = new object[]
{
	"Address 1",
	"Address 2"
};

/*
	* {
	*   "name": "Muhammet",
	*   "surname": "Kandemir",
	*   "className": "C1",
	*   "addresses": [
	*      "Address 1",
	*      "Address 2",
	*      "Address 3"
	*   ]
	* }
	*/
developer.addresses.push("Address 3");

  • .NETCoreApp 3.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1 180 12/15/2019
1.0.0 139 12/7/2019