Closed beezly closed 10 years ago
The commit at https://github.com/beezly/splunk-sdk-ruby/commit/ab454710157a747c55b58542a83233a095af84d7 changes the sdk to use the compiled JSON extension if it is available. It will fallback to the pure Ruby JSON implementation if the compiled extension doesn't work for any reason.
It passes the test suite without any problems being reported.
In client.rb there is a comment and a require suggesting json/ext doesn't work;
However, I've just tried replacing it with
and it seems to behave as expected, certainly with a jobs.create_oneshot search request. Does it not work in other circumstances or can this be changed to 'json'? Just using require 'json' will enable fallback to 'json/pure' if the extension version is not available.