Custom theme for Oh My Posh. Had to call it something, so I went with "jelly".
The red 🛡️ appears when in an elevated prompt (administrator or root).
File paths are not truncated, which allows for easy copy/pasting.
:root { | |
--default-text: "State 1 (root)"; | |
--toggled-text: "State 2 (root)"; | |
} | |
button { | |
text-align: center; | |
vertical-align: middle; | |
} |
[Options] | |
ThemeIndex=3 | |
Language=en-US | |
Font1=Consolas | |
Font2=Consolas | |
Size1=11 | |
Size2=10 | |
Scroll=1 | |
Interface=2 | |
Reset=0 |
This gist shows the various pieces needed to implement System.Text.Json
instead of System.Web.Script.Serialization.JavaScriptSerializer
or Newsonsoft.Json
in ASP.NET MVC 5. We need to make the replacement in two places: the model binding for deserializing requests, and JsonResult
for serializing responses.
For the model binding, implement a custom Value Provider to replace the default JsonValueProviderFactory
.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;