Improved jsonrest sample to query data item in displayed time range