removed dependency on JSONKit