Adds jsonOptString and jsonEnsureStirng which take ActionContext.