chrfr777/simple-json
JSON library for .NET 2.0+/SL4+/WP7/WindowsStore with optional support for dynamic and DataContract
The JavaScript standard, also known as “Web ECMAScript”
This repository is cataloged as part of our automated global GitHub synchronization. Full telemetry, velocity snapshots, and code summaries are scheduled for continuous enrichment.
JSON library for .NET 2.0+/SL4+/WP7/WindowsStore with optional support for dynamic and DataContract
GitHub API documentation
/** * Unit test for the OAuth querystring monkey patch module. */ (function () { var qs = require(__dirname + '/../lib/querystring'); describe('querystring', function () { describe('#escape()', function () { it('should properly escape strings per RFC 3986, Section 2.1', function () { var tests = [ {'input': 'Ladies + Gentlemen', 'expected': 'Ladies%20%2B%20Gentlemen'}, {'input': 'An encoded string!', 'expected': 'An%20encoded%20string%21'}, {'input': 'Dogs, Cats & Mice', 'expected': 'Dogs%2C%20Cats%20%26%20Mice'}, {'input': 'Hello Ladies + Gentlemen, a signed OAuth request!', 'expected': 'Hello%20Ladies%20%2B%20Gentlemen%2C%20a%20signed%20OAuth%20request%21'} ] tests.forEach(function (test) { var encoded = qs.escape(test.input); encoded.should.equal(test.expected); });
Git Source Code Mirror - This is a publish-only repository and all pull requests are ignored. Please follow Documentation/SubmittingPatches procedure for any of your improvements.