Skip to main content

Questions tagged [json.net]

Json.NET (also known as Newtonsoft.Json) is a popular high-performance JSON framework for .NET.

Filter by
Sorted by
Tagged with
7 votes
0 answers
659 views

Chaining JSON transformations with visitors

I have currently two use-cases that require JSON transformations before it can be deserialized. The first use-case requires changing the custom short type property name from ...
t3chb0t's user avatar
  • 44.3k
6 votes
1 answer
2k views

Making TypeNameHandling in json.net more convenient

Handling abstract types in json.net can be sometimes challenging because it requires a very long and complex syntax like: ...
t3chb0t's user avatar
  • 44.3k
6 votes
2 answers
841 views

Scan a directory for files and load it in memory efficiently

I am working on a little project where I need to scan all the files present in a folder on the disk and load it in memory. Below is my code which does that exactly and works fine. Here are the steps: ...
dragons's user avatar
  • 319
4 votes
1 answer
90 views

Preparing tabular data to be sent as json

I query a database and pass the data for processing as a DataTable. After all computations (grouping, filtering, formatting etc.) I need to send it to a Web-Service ...
t3chb0t's user avatar
  • 44.3k
5 votes
1 answer
2k views

Adjusting business logic conveniently through JSON and expression trees

I need to evaluate some data. The rules how it should be done are changing frequently (it's an evolving model) so I don't want to rewrite my application each time such a change comes. I'd rather do it ...
t3chb0t's user avatar
  • 44.3k
2 votes
1 answer
184 views

Reload configs in memory basis on a trigger efficiently

(following up from here) I am working on a little project where I need to scan all the config files present in a folder on the disk and load it in memory. Below are the steps: On the disk there is ...
dragons's user avatar
  • 319