You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When converting from YAML to JSON, the GuidConverter is not handling Guid's correctly. They must be quoted strings according to JSON spec.
var js = new Serializer(SerializationOptions.JsonCompatible | SerializationOptions.DisableAliases, namingConvention: new CamelCaseNamingConvention());
using (var w = new StringWriter())
{
js.Serialize(w, o);
string json = w.ToString();
/*Fix for issue #165, duplicate backslashes produced by YamlDotNet */
json = json.Replace(@"\\", @"\");
return json;
}
The text was updated successfully, but these errors were encountered:
awesome thanks. I thought this might have been happening in the underlying json library as microsoft's javascript serialize also behaves this way, but I didn't check to see if you had rolled your own.
When converting from YAML to JSON, the GuidConverter is not handling Guid's correctly. They must be quoted strings according to JSON spec.
The text was updated successfully, but these errors were encountered: