* @param chainrSpec Plain vanilla hydrated JSON representation of a Chainr spec .json file.
*/
public ChainrSpec( Object chainrSpec ) {
if ( !( chainrSpec instanceof List ) ) {
throw new SpecException( "JOLT Chainr expects a JSON array of objects - Malformed spec." );
}
@SuppressWarnings( "unchecked" ) // We know its a list due to the check above
List<Object> operations = (List<Object>) chainrSpec;
if ( operations.isEmpty() ) {
throw new SpecException( "JOLT Chainr passed an empty JSON array.");
}
List<ChainrEntry> entries = new ArrayList<ChainrEntry>(operations.size());
for ( int index = 0; index < operations.size(); index++ ) {