fetching field names with output
returning get output as json