Exemplo n.º 1
0
        /// <summary>
        /// Converts request body and MatchedVars into a single JSONDataMap. Users should call WholeRequestAsJSONDataMap.get() as it caches the result
        /// </summary>
        protected virtual JsonDataMap GetWholeRequestAsJSONDataMap()
        {
            var body = this.RequestBodyAsJSONDataMap;

            if (body == null)
            {
                return(MatchedVars);
            }

            var result = new JsonDataMap(false);

            result.Append(MatchedVars)
            .Append(body);
            return(result);
        }