Example #1
0
        /// <summary>
        /// Get the json result.
        /// </summary>
        /// <returns>
        /// The json result.
        /// </returns>
        public object GetResultData()
        {
            var json = JsonSerializer.Current.DeserializeObject(_json);

            if (_isBatchResult)
            {
                return(FacebookClient.ProcessBatchResult(json));
            }
            if (_isQuery)
            {
                // required for compatibility with v5.2.1
                var result = (IDictionary <string, object>)json;
                return(result["data"]);
            }
            return(json);
        }
        /// <summary>
        /// Get the json result.
        /// </summary>
        /// <returns>
        /// The json result.
        /// </returns>
        public object GetResultData()
        {
            var json = JsonSerializer.Current.DeserializeObject(_json);

            return(_isBatchResult ? FacebookClient.ProcessBatchResult(json) : json);
        }