The thing I'm concerned about is 
    '<pre>' . $instance->encodeJson( array( $objectId, $row ) ) . '</pre>'