We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The output of
ITraktShow show = ...; // Show: The Last of Us string json = await TraktSerializationService.SerializeAsync(show); Console.WriteLine(json);
looks like this:
{"title":"The Last of Us","year":2023,"ids":{"trakt":158947,"slug":"the-last-of-us","tvdb":392256,"imdb":"tt3581920","tmdb":100088}}
TraktSerializationService.SerializeAsync() should get an optional boolean parameter indentation, which indents the JSON output like this:
TraktSerializationService.SerializeAsync()
indentation
{ "title":"The Last of Us", "year":2023, "ids": { "trakt":158947, "slug":"the-last-of-us", "tvdb":392256, "imdb":"tt3581920", "tmdb":100088 } }
API Change:
namespace TraktNet.Services { + public static Task<string> SerializeAsync(ITraktAuthorization authorization, bool indentation, CancellationToken cancellationToken = default); + public static Task<string> SerializeAsync<TObjectType>(TObjectType obj, bool indentation, CancellationToken cancellationToken = default); + public static Task<string> SerializeCollectionAsync<TObjectType>(IEnumerable<TObjectType> objects, bool indentation, CancellationToken cancellationToken = default); }
The text was updated successfully, but these errors were encountered:
GH-401: Add indentation parameter in TraktSerializationService
TraktSerializationService
1ba7177
GH-401: Update docs
f469787
Merge branch 'release-1.4.0' into issue/release-1.4.0/GH-401
718d64c
Merge pull request #431 from henrikfroehling/issue/release-1.4.0/GH-401
9a6624f
Resolves GH-401
henrikfroehling
Successfully merging a pull request may close this issue.
The output of
looks like this:
TraktSerializationService.SerializeAsync()
should get an optional boolean parameterindentation
, which indents the JSON output like this:API Change:
The text was updated successfully, but these errors were encountered: