Skip to content

Instantly share code, notes, and snippets.

@ellismarte
Last active August 22, 2016 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ellismarte/16d487a1988bce0dc1c199e2f6acc557 to your computer and use it in GitHub Desktop.
Save ellismarte/16d487a1988bce0dc1c199e2f6acc557 to your computer and use it in GitHub Desktop.
jruby-9.1.2.0 :024 > a = {"inputJSON" => "{ \"followUpReq\": false, \"fName\": \"Harry\", \"lName\": \"Potter\", \"systemName\": \"PREVIOUS_VERSIONS\", \"email\": \"harry.potter1@ssttest.net\", \"subscriptionNumber\": \"343-259\", \"productName\": \"Building Design Suite Premium\", \"serialNumber\": \"380-26229219\", \"release\": \"2014\", \"caseLanguage\": \"English\", \"subject\":\" Autodesk Home Use\", \"description\": \"Home Use Request\"}"}.to_json
=> "{\"inputJSON\":\"{ \\\"followUpReq\\\": false, \\\"fName\\\": \\\"Harry\\\", \\\"lName\\\": \\\"Potter\\\", \\\"systemName\\\": \\\"PREVIOUS_VERSIONS\\\", \\\"email\\\": \\\"harry.potter1@ssttest.net\\\", \\\"subscriptionNumber\\\": \\\"343-25578259\\\", \\\"productName\\\": \\\"Building Design Suite Premium\\\", \\\"serialNumber\\\": \\\"329219\\\", \\\"release\\\": \\\"2014\\\", \\\"caseLanguage\\\": \\\"English\\\", \\\"subject\\\":\\\" Home Use\\\", \\\"description\\\": \\\"Home Use Request\\\"}\"}"
jruby-9.1.2.0 :025 > puts a
{"inputJSON":"{ \"followUpReq\": false, \"fName\": \"Harry\", \"lName\": \"Potter\", \"systemName\": \"PREVIOUS_VERSIONS\", \"email\": \"harry.potter1@ssttest.net\", \"subscriptionNumber\": \"34359\", \"productName\": \"Building Design Suite Premium\", \"serialNumber\": \"380-19\", \"release\": \"2014\", \"caseLanguage\": \"English\", \"subject\":\" ome Use\", \"description\": \"Home Use Request\"}"}
=> nil
{"inputJSON":"{\"followUpReq\":false,\"fName\":\"Harry\",\"lName\":\"Potter\",\"systemName\":
\"PREVIOUS_VERSIONS\",\"email\":\"harry.potter1@ssttest.net\",\"subscriptionNumber\":\"343-255782212259\",
\"productName\":\"Building Design Suite Premium\",\"serialNumber\":\"389\",\"release\":\"2014\",
\"caseLanguage\":\"English\",\"subject\":\" Home Use - \",\"description\":\"Home Use Request \"}"}
"{\"inputJSON\":\"{ \\\"followUpReq\\\": false, \\\"fName\\\": \\\"Harry\\\", \\\"lName\\\": \\\"Potter\\\",
\\\"systemName\\\": \\\"PREVIOUS_VERSIONS\\\", \\\"email\\\": \\\"harry.potter1@ssttest.net\\\",
\\\"subscriptionNumber\\\": \\\"343-2559\\\", \\\"productName\\\": \\\"Building Design Suite Premium\\\",
\\\"serialNumber\\\": \\\"380-2219\\\", \\\"release\\\": \\\"2014\\\", \\\"caseLanguage\\\": \\\"English\\\",
\\\"subject\\\":\\\" Home Use\\\", \\\"description\\\": \\\"Home Use Request\\\"}\"}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment