Use System.Json.Text in UWP,
JsonSerializer.ToString(new { test = "abc" });
Failure occurred while loading a type.
This operation cannot be carried out because metadata for the following object was removed for performance reasons: <unavailable>
No further information is available. Rebuild in debug mode for better information.