to_json method for page
threshold settings