private List < Object > extractKeyAndRow ( String timestamp , JSONObject jsonRow ) { List < Object > rowValues = new ArrayList <> ( ) ; rowValues . add ( timestamp ) ; for ( Object key : jsonRow . keySet ( ) ) { rowValues . add ( jsonRow . get ( key . toString ( ) ) ) ; } return rowValues ; }
Extract v = all fields from json . The first field is always timestamp and is passed to the method not extracted .