Fixed up JSON patching.  It actually works now...