Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kamranayub/.json
A set of C# classes that help you work with JSON from services, strings, or objects in a dynamically typed form.
https://github.com/kamranayub/.json
Last synced: 29 days ago
JSON representation
A set of C# classes that help you work with JSON from services, strings, or objects in a dynamically typed form.
- Host: GitHub
- URL: https://github.com/kamranayub/.json
- Owner: kamranayub
- License: other
- Created: 2011-02-27T09:06:51.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-06-28T17:10:49.000Z (over 13 years ago)
- Last Synced: 2024-04-13T16:06:59.957Z (7 months ago)
- Language: C#
- Homepage:
- Size: 957 KB
- Stars: 12
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
.JSON is For Winners
====================**.JSON** is a group of classes **in one file** that help you easily work with JSON as a **dynamically typed object** (`myJson.someProperty[0].name`), obtained from web services, strings, or anonymous objects.
It's made up of syntactic sugar, spice, and everything nice.
// In controller
public ActionResult Index() {
dynamic[] repositories = JsonService.GetFrom("http://github.com/api/v2/json/repos/show/kamranayub").repositories;
dynamic topRepo = repositories.OrderBy(r => r.watchers).First();
return View(topRepo);
}
// In razor file
@model dynamic
@Model.name
@Model.url (@Model.watchers watching, @Model.forks forks)
## Learn
View [the Wiki](https://github.com/kamranayub/.JSON/wiki) to learn more about **.JSON** and why it's awesome.