This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var parseValues = function (data, callback, prefix, postfix) { | |
postfix = postfix || ""; | |
prefix = prefix || ""; | |
for (var key in data) { | |
if (data[key] == null) { | |
continue; | |
} | |
if ( Object.prototype.toString.call( data[key] ) === '[object Array]') { | |
parseValues(data[key], callback, prefix + key + postfix + "[", "]"); | |
} else if (typeof data[key] == "object") { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var settings = new JsonSerializerSettings(); | |
settings.ContractResolver = new SignalRContractResolver(); | |
var serializer = new JsonNetSerializer(settings); | |
GlobalHost.DependencyResolver.Register(typeof (IJsonSerializer), () => serializer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var serializer = new MyJsonSerializer(); | |
GlobalHost.DependencyResolver.Register(typeof(IJsonSerializer), () => serializer); |
NewerOlder