add peeking method of JSON