Json Serialization
@etishor, How do you feel about taking a dependency on Json.NET or having an abstraction on json serialization internally?
I'm currently working on updating elasticsearch reporting, starting with counter metrics. Serializing dynamic objects is going to be much easier to work with than the custom serialization in the framework.
On the topic of elasticsearch, would you be happy to have an embedded resource for document mapping and creating the index upfront on creating a new es report? For example https://github.com/alhardy/Metrics.NET/commit/5161ea7d66dcd58010e704ae30d5b5dcb20d4457.
If you've already thought about the metrics document structure please share your thoughts, otherwise I'll continue and get you to review.
I'll add more thoughts when i get to a computer regarding ES. Regarding json.net, i rather not, unless the benefits are really worthed. I was thinking about a code only generic JSON serializer like simple json from facebook (https://github.com/facebook-csharp-sdk/simple-json) but i have not tried it.
Another idea is to have ES adapter as a separate package, then it could depend on Json.net - that would also make sense.
OK ill pull the ES stuff out into a separate library for now.