* add new indexes, and change year column to int * Change gist to gin, and change year to int * Producer changes for new gin query * Fully map the rtn response using json dump from Pydantic Also updates Rtn to 0.1.9 * Add housekeeping script to reconcile imdb ids. * Join Torrent onto the ingested torrent table Ensure that a torrent can always find the details of where it came from, and how it was parsed. * Version bump for release * missing quote on table name
14 lines
479 B
C#
14 lines
479 B
C#
namespace SharedContracts.Extensions;
|
|
|
|
public static class JsonExtensions
|
|
{
|
|
private static readonly JsonSerializerOptions JsonSerializerOptions = new()
|
|
{
|
|
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
|
|
WriteIndented = false,
|
|
ReferenceHandler = ReferenceHandler.IgnoreCycles,
|
|
NumberHandling = JsonNumberHandling.Strict,
|
|
};
|
|
|
|
public static string AsJson<T>(this T obj) => JsonSerializer.Serialize(obj, JsonSerializerOptions);
|
|
} |