Skip to content

Commit

Permalink
Merge branch 'devel'
Browse files Browse the repository at this point in the history
  • Loading branch information
JosefNemec committed Apr 5, 2017
2 parents a0378a3 + 5ffc618 commit 22b68a4
Show file tree
Hide file tree
Showing 54 changed files with 1,932 additions and 935 deletions.
10 changes: 10 additions & 0 deletions source/Playnite/CloneObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,16 @@ public static bool IsListEqual<T>(this IEnumerable<T> source, IEnumerable<T> tar

return true;
}

public static string ToJson(this object value)
{
var settings = new JsonSerializerSettings
{
ReferenceLoopHandling = ReferenceLoopHandling.Ignore
};

return JsonConvert.SerializeObject(value, Formatting.Indented, settings);
}
}

}
Loading

0 comments on commit 22b68a4

Please sign in to comment.