int findIndexOfValidField(String blob){
  for (  Field field : AttributeCompressionStrategy.getAllValidFields(InternalSession.class)) {
    String search=JSONSerialisation.jsonAttributeName(field.getName());
    int index=blob.indexOf(search);
    if (index != -1) {
      return index;
    }
  }
  return -1;
}

int findIndexOfValidField ( String blob ) { for ( Field field : AttributeCompressionStrategy . getAllValidFields ( InternalSession . class ) ) { String search = JSONSerialisation . jsonAttributeName ( field . getName ( ) ) ; int index = blob . indexOf ( search ) ; if ( index != - 1 ) { return index ; } } return - 1 ; }
search the json blob contents and locate a valid field within the json .
