update query system jsonparser
implement a segment handler class