Fixed issue with id_range option generation.
ViewQuery key parameter should be JSON encoded.