fix small bug
json-buffer to encode/decode iterator options