In JSON string quote (') has special meaning, so it got encoded to distinguish between quote as separator and quote as data...
You can escape quote (\'), which do work, but not comfort to the JSON specification...
What you should do according the specification is using an escaped double-quote (\")...
ViewBag.PlaceHolder = "text:\"test\"";