Returning Raw JSON Data in Web API with Marten

added by DotNetKicks
2/16/2017 10:19:44 PM

2 Kicks, 330 Views

Practical ASP.NET Here's a trick to have Marten automatically deserialize JSON data only when you want it to. Marten is an open source .NET document database library that allows the storing, loading, updating and deleting of objects as documents in an underlying PostgreSQL database. Marten stores .NET objects as JSON data in the underlying PostgreSQL database.